Choice module: append nick to avoid response stating with a command
This commit is contained in:
parent
de85344b84
commit
85edb9489d
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user