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:
parent
84eee41734
commit
7a0a013c43
@ -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):
|
||||
|
Loading…
Reference in New Issue
Block a user