aboutsummaryrefslogtreecommitdiff
path: root/modules/channel_op.py
diff options
context:
space:
mode:
authorGravatar jesopo2020-02-04 16:01:10 +0000
committerGravatar jesopo2020-02-04 16:01:10 +0000
commitd706c4ab9117bfcb11199a29028dbaf10a2f794b (patch)
tree29838e212a8e986b3d44378e8b03f63697560e70 /modules/channel_op.py
parentswitch module whitelist/blacklist to its own config file (diff)
signature
!voice should target a nickname, not a user object
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")