From d706c4ab9117bfcb11199a29028dbaf10a2f794b Mon Sep 17 00:00:00 2001 From: jesopo Date: Tue, 4 Feb 2020 16:01:10 +0000 Subject: [PATCH] !voice should target a nickname, not a user object --- modules/channel_op.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/modules/channel_op.py b/modules/channel_op.py index bbc7d012..3e1fe14a 100644 --- a/modules/channel_op.py +++ b/modules/channel_op.py @@ -149,7 +149,8 @@ class Module(ModuleManager.BaseModule): @utils.spec("!<#channel>r~channel !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")