From 7a0a013c43c2f71234b6b42ea57e520dc1233f4c Mon Sep 17 00:00:00 2001 From: James Lu Date: Wed, 10 Aug 2016 19:38:46 -0700 Subject: [PATCH] clientbot: suppress mode change hooks for internal clients --- protocols/clientbot.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/protocols/clientbot.py b/protocols/clientbot.py index 7a85f1a..a3ed2bf 100644 --- a/protocols/clientbot.py +++ b/protocols/clientbot.py @@ -521,6 +521,9 @@ class ClientbotWrapperProtocol(Protocol): changedmodes = self.irc.parseModes(target, modes) self.irc.applyModes(target, changedmodes) + if self.irc.isInternalClient(target): + log.debug('(%s) Suppressing MODE change hook for internal client %s', self.irc.name, target) + return return {'target': target, 'modes': changedmodes, 'oldchan': oldobj} def handle_nick(self, source, command, args):