aboutsummaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
authorGravatar jesopo2020-02-25 11:25:51 +0000
committerGravatar jesopo2020-02-25 11:25:51 +0000
commitee9415daef2f11214e846f62a8010df759dda535 (patch)
treec5adbb6e6541185969055379efa5c026c63f8507 /modules
parentadd !invex, refactor all channel_op mode-type commands (diff)
signature
unmode timer should use send_modes
Diffstat (limited to 'modules')
-rw-r--r--modules/channel_op.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/modules/channel_op.py b/modules/channel_op.py
index e2e85f11..d47c9d30 100644
--- a/modules/channel_op.py
+++ b/modules/channel_op.py
@@ -46,8 +46,7 @@ class Module(ModuleManager.BaseModule):
channel = server.channels.get(channel_name)
args = timer.kwargs.get("args", [timer.kwargs.get("arg", None)])
- mode = timer.kwargs.get("mode", "b")*max(1, len(args))
- server.send_mode(channel.name, "-%s" % mode, args)
+ channel.send_modes(timer.kwargs.get("mode", "b"), False, args)
def _kick_reason(self, server, channel):