From f335c2298e2f4051eaa199457c315ee95e2df1a0 Mon Sep 17 00:00:00 2001 From: Santo Cariotti Date: Tue, 22 Aug 2017 11:07:17 +0200 Subject: set name --- lib/commands.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'lib/commands.py') diff --git a/lib/commands.py b/lib/commands.py index ced0f3c..10c89fb 100644 --- a/lib/commands.py +++ b/lib/commands.py @@ -19,7 +19,8 @@ class Commands(object): self.user = cmd[2] - r.set('user', self.user) #change name of user + with open('/tmp/stout', 'wb') as fout: + fout.write(cmd[2].encode('utf-8')) print('Ok') elif cmd[1] is not ListCommands.commands['set']: -- cgit v1.2.3-18-g5258