mirror of
https://github.com/jlu5/PyLink.git
synced 2024-11-01 01:09:22 +01:00
clientbot: only send MODE if there are modes left after filtering
This commit is contained in:
parent
57b566286d
commit
1cb320f5f4
@ -200,6 +200,7 @@ class ClientbotWrapperProtocol(Protocol):
|
||||
extmodes.append(modepair)
|
||||
|
||||
log.debug('(%s) mode: filtered modes for %s: %s', self.irc.name, channel, extmodes)
|
||||
if extmodes:
|
||||
self.irc.send('MODE %s %s' % (channel, self.irc.joinModes(extmodes)))
|
||||
# Don't update the state here: the IRCd sill respond with a MODE reply if successful.
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user