aboutsummaryrefslogtreecommitdiff
path: root/modules/channel_op.py
diff options
context:
space:
mode:
Diffstat (limited to 'modules/channel_op.py')
-rw-r--r--modules/channel_op.py3
1 files changed, 2 insertions, 1 deletions
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 !<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")