mirror of
https://github.com/jlu5/PyLink.git
synced 2024-12-03 16:39:25 +01:00
inspircd, nefarious: stop applying remote modes on sjoin
I have no clue why this code exists, but it looks wrong and probably is wrong.
This commit is contained in:
parent
f851dc8ac1
commit
0b8b4dc3cf
@ -526,7 +526,6 @@ class InspIRCdProtocol(TS6BaseProtocol):
|
||||
|
||||
modestring = args[2:-1] or args[2]
|
||||
parsedmodes = self.irc.parseModes(channel, modestring)
|
||||
self.irc.applyModes(channel, parsedmodes)
|
||||
namelist = []
|
||||
|
||||
# Keep track of other modes that are added due to prefix modes being joined too.
|
||||
|
@ -1025,16 +1025,10 @@ class P10Protocol(IRCS2SProtocol):
|
||||
else:
|
||||
parsedmodes = []
|
||||
|
||||
# This list is used to keep track of prefix modes being added to the mode list.
|
||||
changedmodes = set(parsedmodes)
|
||||
|
||||
# Also add the the ban list to the list of modes to process internally.
|
||||
parsedmodes.extend(bans)
|
||||
if parsedmodes:
|
||||
self.irc.applyModes(channel, parsedmodes)
|
||||
changedmodes = set(parsedmodes + bans)
|
||||
|
||||
namelist = []
|
||||
log.debug('(%s) handle_sjoin: got userlist %r for %r', self.irc.name, userlist, channel)
|
||||
log.debug('(%s) handle_burst: got userlist %r for %r', self.irc.name, userlist, channel)
|
||||
|
||||
prefixes = ''
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user