Also use ISON even if MONITOR is supported - to catch NICK changes

(nick_regain.py)
This commit is contained in:
jesopo 2019-02-12 20:59:11 +00:00
parent f2a7acfe4d
commit ef43c9aeef

View file

@ -6,8 +6,7 @@ class Module(ModuleManager.BaseModule):
if not server.irc_equals(server.nickname, target_nick):
if "MONITOR" in server.isupport:
server.send("MONITOR + %s" % target_nick)
else:
self.timers.add("ison-check", 30, server=server)
self.timers.add("ison-check", 30, server=server)
@utils.hook("received.numeric.376")
def end_of_motd(self, event):