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, 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):