!voice should target a nickname, not a user object

This commit is contained in:
jesopo 2020-02-04 16:01:10 +00:00
parent 8e611c451e
commit d706c4ab91

View file

@ -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")