!voice should target a nickname, not a user object
This commit is contained in:
parent
8e611c451e
commit
d706c4ab91
1 changed files with 2 additions and 1 deletions
|
@ -149,7 +149,8 @@ class Module(ModuleManager.BaseModule):
|
|||
@utils.spec("!<#channel>r~channel !<nickname>ruser")
|
||||
def voice(self, event):
|
||||
add = event["command"] == "voice"
|
||||
event["spec"][0].send_mode("+v" if add else "-v", [event["spec"][1]])
|
||||
event["spec"][0].send_mode("+v" if add else "-v",
|
||||
[event["spec"][1].nickname])
|
||||
|
||||
@utils.hook("received.command.topic")
|
||||
@utils.kwarg("require_mode", "o")
|
||||
|
|
Loading…
Reference in a new issue