From 26755d32d592343a091df3248e9a783cf1f4d58d Mon Sep 17 00:00:00 2001 From: Stefan Krulj Date: Tue, 17 Dec 2013 00:17:58 +0100 Subject: [PATCH] changed tell module s.t. it concatinates all arguments to a message --- modules/active/tell.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/modules/active/tell.py b/modules/active/tell.py index 6cb5c06..c509050 100644 --- a/modules/active/tell.py +++ b/modules/active/tell.py @@ -25,7 +25,7 @@ def tell(msg, args): global container store = container["store"] - if( len(args) != 3): + if( len(args) < 3): brathuhn.sendMsg(brathuhn.ROOM,"Usage: "+args[0]+" nick text",'groupchat') return @@ -35,7 +35,10 @@ def tell(msg, args): brathuhn.sendMsg(brathuhn.ROOM,"User "+args[1]+" is already here, tell them yourself!",'groupchat') return - message = args[2] + message = "" + for part in args[2:] + message += part + nick = args[1] origin = msg.getFrom().getResource() #TODO ugly store.append( (nick, message, origin, datetime.today()) )