unmode timer should use send_modes

This commit is contained in:
jesopo 2020-02-25 11:25:51 +00:00
parent 5ebcb9582d
commit ee9415daef

View file

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