Changing sender to nick in modules

This commit is contained in:
Némunaire 2012-07-23 12:07:26 +02:00
commit 14a963871f
12 changed files with 103 additions and 101 deletions

View file

@ -28,14 +28,14 @@ def parseanswer(msg):
t = Tinyfier.Tinyfier(url, msg)
t.start()
else:
msg.send_chn("%s: je n'ai pas d'autre URL reduire" % msg.sender)
msg.send_chn("%s: je n'ai pas d'autre URL reduire" % msg.nick)
else:
if len(msg.cmd) < 6:
for url in msg.cmd[1:]:
t = Tinyfier.Tinyfier(url, msg)
t.start()
else:
msg.send_chn("%s: je ne peux pas réduire autant d'URL d'un seul coup." % msg.sender)
msg.send_chn("%s: je ne peux pas réduire autant d'URL d'un seul coup." % msg.nick)
return True
else:
return False