Choice module: append nick to avoid response stating with a command

This commit is contained in:
nemunaire 2014-07-10 23:35:41 +02:00
parent de85344b84
commit 85edb9489d

View File

@ -9,4 +9,4 @@ def load(context):
add_hook("cmd_hook", Hook(cmd_choice, "choice"))
def cmd_choice(msg):
return Response(msg.sender, random.choice(msg.cmds[1:]), channel=msg.channel)
return Response(msg.sender, random.choice(msg.cmds[1:]), channel=msg.channel, nick=msg.nick)