mirror of
https://github.com/jlu5/PyLink.git
synced 2024-11-23 19:19:31 +01:00
nefarious: fix 'changedmodes' type inconsistency causing crashes
This commit is contained in:
parent
d549e2ae47
commit
26f4a9c276
@ -495,7 +495,7 @@ class P10Protocol(Protocol):
|
|||||||
|
|
||||||
log.debug('(%s) sjoin: bans: %s, exempts: %s, other modes: %s', self.irc.name, bans, exempts, regularmodes)
|
log.debug('(%s) sjoin: bans: %s, exempts: %s, other modes: %s', self.irc.name, bans, exempts, regularmodes)
|
||||||
|
|
||||||
changedmodes = modes
|
changedmodes = set(modes)
|
||||||
changedusers = []
|
changedusers = []
|
||||||
namelist = []
|
namelist = []
|
||||||
|
|
||||||
@ -534,7 +534,7 @@ class P10Protocol(Protocol):
|
|||||||
last_prefixes = prefixes
|
last_prefixes = prefixes
|
||||||
if prefixes:
|
if prefixes:
|
||||||
for prefix in prefixes:
|
for prefix in prefixes:
|
||||||
changedmodes.append(('+%s' % prefix, user))
|
changedmodes.add(('+%s' % prefix, user))
|
||||||
|
|
||||||
self.irc.users[user].channels.add(channel)
|
self.irc.users[user].channels.add(channel)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user