3
0
mirror of https://github.com/jlu5/PyLink.git synced 2024-11-27 21:19:31 +01:00

nefarious: fix 'changedmodes' type inconsistency causing crashes

This commit is contained in:
James Lu 2016-07-05 00:13:33 -07:00
parent d549e2ae47
commit 26f4a9c276

View File

@ -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)