mirror of
https://github.com/jlu5/PyLink.git
synced 2024-12-25 04:02:45 +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)
|
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):
|
||||||
|
Loading…
Reference in New Issue
Block a user