From 7e5c437b7c2b3f32ed4bd47aade921596ef5a6ee Mon Sep 17 00:00:00 2001 From: Santo Cariotti Date: Tue, 22 Aug 2017 12:05:38 +0200 Subject: fixed some things --- lib/commands.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lib/commands.py') diff --git a/lib/commands.py b/lib/commands.py index ec44558..defdef6 100644 --- a/lib/commands.py +++ b/lib/commands.py @@ -20,7 +20,7 @@ class Commands(object): self.user = cmd[2] with open(co['path'], 'wb') as fout: - fout.write(cmd[2].encode('utf-8')) + fout.write((cmd[2] + '\n').encode('utf-8')) print('Ok') elif cmd[1] is not ListCommands.commands['set']: @@ -82,7 +82,7 @@ class Commands(object): try: with open(co['path'], 'ab') as fout: - fout.write(('\n' + msg).encode('utf-8')) + fout.write((msg + '\n').encode('utf-8')) print('Ok') except: -- cgit v1.2.3-18-g5258