3
0
mirror of https://github.com/jlu5/PyLink.git synced 2024-12-24 19:52:53 +01:00

clientbot: suppress mode change hooks for internal clients

This commit is contained in:
James Lu 2016-08-10 19:38:46 -07:00
parent 84eee41734
commit 7a0a013c43

View File

@ -521,6 +521,9 @@ class ClientbotWrapperProtocol(Protocol):
changedmodes = self.irc.parseModes(target, modes) changedmodes = self.irc.parseModes(target, modes)
self.irc.applyModes(target, changedmodes) 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} return {'target': target, 'modes': changedmodes, 'oldchan': oldobj}
def handle_nick(self, source, command, args): def handle_nick(self, source, command, args):