mirror of
https://github.com/jlu5/PyLink.git
synced 2024-11-01 01:09:22 +01:00
ts6 (and derivatives): don't burst bans that were already set
This commit is contained in:
parent
803ccf7708
commit
dc11638eb9
@ -113,6 +113,10 @@ class TS6Protocol(TS6BaseProtocol):
|
||||
modechar = mode[0][-1]
|
||||
if modechar in self.irc.cmodes['*A']:
|
||||
# Mode character is one of 'beIq'
|
||||
if (modechar, mode[1]) in self.irc.channels[channel].modes:
|
||||
# Don't reset modes that are already set.
|
||||
continue
|
||||
|
||||
banmodes[modechar].add(mode[1])
|
||||
else:
|
||||
regularmodes.append(mode)
|
||||
|
Loading…
Reference in New Issue
Block a user