From bc68b50874d23ed392c7cee2c38a5fc062cf0f9b Mon Sep 17 00:00:00 2001 From: jesopo Date: Sun, 12 May 2019 22:07:25 +0100 Subject: [PATCH] send() is only for parsed irc lines --- modules/nick_regain.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/modules/nick_regain.py b/modules/nick_regain.py index 10577f99..4fbc1cfa 100644 --- a/modules/nick_regain.py +++ b/modules/nick_regain.py @@ -5,7 +5,7 @@ class Module(ModuleManager.BaseModule): target_nick = server.connection_params.nickname if not server.irc_equals(server.nickname, target_nick): if "MONITOR" in server.isupport: - server.send("MONITOR + %s" % target_nick) + server.send_raw("MONITOR + %s" % target_nick) else: self.timers.add("ison-check", 30, server=server) @@ -21,7 +21,7 @@ class Module(ModuleManager.BaseModule): target_nick = event["server"].connection_params.nickname if event["server"].irc_equals(event["new_nickname"], target_nick): if "MONITOR" in event["server"].isupport: - event["server"].send("MONITOR - %s " % target_nick) + event["server"].send_raw("MONITOR - %s " % target_nick) @utils.hook("received.731") def mon_offline(self, event): @@ -36,7 +36,7 @@ class Module(ModuleManager.BaseModule): target_nick = event["server"].connection_params.nickname if not event["server"].irc_equals( event["server"].nickname, target_nick): - event["server"].send("ISON %s" % target_nick) + event["server"].send_raw("ISON %s" % target_nick) event["timer"].redo() @utils.hook("received.303")