From f34ee31036727c2c667f2de89c9cf6b123c0b21c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?N=C3=A9munaire?= Date: Tue, 21 Feb 2012 12:39:58 +0100 Subject: [PATCH] Little fix on nemuspeak (potential out of bounds) --- nemuspeak.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/nemuspeak.py b/nemuspeak.py index e4bc54c..68df580 100755 --- a/nemuspeak.py +++ b/nemuspeak.py @@ -16,7 +16,6 @@ if len(sys.argv) == 1: print "This script takes exactly 1 arg: a XML config file" sys.exit(1) -SERVER = list() SMILEY = list() g_queue = list() talkEC = 0 @@ -77,7 +76,7 @@ def speak(endstate): action = 1 for (txt, mood) in SMILEY: if msg[3].find(txt) >= 1: - sentence += msg[1] + " %s : "%mood + sentence += msg[1] + (" %s : "%mood) msg[3] = msg[3].replace(txt, "") action = 1 break