unmode timer should use send_modes
This commit is contained in:
parent
5ebcb9582d
commit
ee9415daef
1 changed files with 1 additions and 2 deletions
|
@ -46,8 +46,7 @@ class Module(ModuleManager.BaseModule):
|
||||||
channel = server.channels.get(channel_name)
|
channel = server.channels.get(channel_name)
|
||||||
|
|
||||||
args = timer.kwargs.get("args", [timer.kwargs.get("arg", None)])
|
args = timer.kwargs.get("args", [timer.kwargs.get("arg", None)])
|
||||||
mode = timer.kwargs.get("mode", "b")*max(1, len(args))
|
channel.send_modes(timer.kwargs.get("mode", "b"), False, args)
|
||||||
server.send_mode(channel.name, "-%s" % mode, args)
|
|
||||||
|
|
||||||
|
|
||||||
def _kick_reason(self, server, channel):
|
def _kick_reason(self, server, channel):
|
||||||
|
|
Loading…
Reference in a new issue