From f825dff121d42cb27bdaf162a30024a6e4467f56 Mon Sep 17 00:00:00 2001 From: Stefano Pigozzi Date: Fri, 5 Feb 2016 18:55:28 +0100 Subject: [PATCH] =?UTF-8?q?Non=20bloccarmi=20il=20diario=20se=20c'=C3=A8?= =?UTF-8?q?=20un=20\n=20nella=20risposta.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- bot.py | 1 + 1 file changed, 1 insertion(+) diff --git a/bot.py b/bot.py index 9a587bb8..c2a66469 100644 --- a/bot.py +++ b/bot.py @@ -562,6 +562,7 @@ while True: elif text.startswith('/diario'): print("@" + username + ": /diario ") cmd = text.split(" ", 1) + cmd[1] = cmd[1].replace("\n", " ") d = filemanager.readfile("diario.txt") d += str(int(time.time())) + "|" + cmd[1] + "\n" filemanager.writefile("diario.txt", d)