diff options
| author | 2020-02-04 16:01:10 +0000 | |
|---|---|---|
| committer | 2020-02-04 16:01:10 +0000 | |
| commit | d706c4ab9117bfcb11199a29028dbaf10a2f794b (patch) | |
| tree | 29838e212a8e986b3d44378e8b03f63697560e70 | |
| parent | switch module whitelist/blacklist to its own config file (diff) | |
| signature | ||
!voice should target a nickname, not a user object
| -rw-r--r-- | modules/channel_op.py | 3 |
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") |
