mirror of
https://github.com/jlu5/PyLink.git
synced 2024-12-12 13:19:49 +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]
|
modestring = args[2:-1] or args[2]
|
||||||
parsedmodes = self.irc.parseModes(channel, modestring)
|
parsedmodes = self.irc.parseModes(channel, modestring)
|
||||||
self.irc.applyModes(channel, parsedmodes)
|
|
||||||
namelist = []
|
namelist = []
|
||||||
|
|
||||||
# Keep track of other modes that are added due to prefix modes being joined too.
|
# Keep track of other modes that are added due to prefix modes being joined too.
|
||||||
|
@ -1025,16 +1025,10 @@ class P10Protocol(IRCS2SProtocol):
|
|||||||
else:
|
else:
|
||||||
parsedmodes = []
|
parsedmodes = []
|
||||||
|
|
||||||
# This list is used to keep track of prefix modes being added to the mode list.
|
changedmodes = set(parsedmodes + bans)
|
||||||
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)
|
|
||||||
|
|
||||||
namelist = []
|
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 = ''
|
prefixes = ''
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user