From 6eab9eb0e05af3198585d6a6d85f6598dd460577 Mon Sep 17 00:00:00 2001 From: Stefano Pigozzi Date: Mon, 7 Mar 2016 12:37:55 +0100 Subject: [PATCH] Sistemata la verifica del diario ryg --- bot.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bot.py b/bot.py index faa01928..a819e6e2 100644 --- a/bot.py +++ b/bot.py @@ -556,7 +556,7 @@ while True: print("@" + username + ": /diario ") cmd = text.split(" ", 1) if len(cmd) > 1: - if cmd[1] in string.printable: + if cmd[1].isprintable(): cmd[1] = cmd[1].replace("\n", " ") diario = filemanager.readfile("diario.txt") diario += str(int(time.time())) + "|" + cmd[1] + "\n"