changed tell module s.t. it concatinates all arguments to a message

master
Stefan Krulj 13 years ago
parent feec335e75
commit 26755d32d5
  1. 7
      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()) )

Loading…
Cancel
Save