From 26f4a9c276ddb2a453d9206e0074f37d4435b137 Mon Sep 17 00:00:00 2001 From: James Lu Date: Tue, 5 Jul 2016 00:13:33 -0700 Subject: [PATCH] nefarious: fix 'changedmodes' type inconsistency causing crashes --- protocols/nefarious.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/protocols/nefarious.py b/protocols/nefarious.py index cb7266d..63903b1 100644 --- a/protocols/nefarious.py +++ b/protocols/nefarious.py @@ -495,7 +495,7 @@ class P10Protocol(Protocol): log.debug('(%s) sjoin: bans: %s, exempts: %s, other modes: %s', self.irc.name, bans, exempts, regularmodes) - changedmodes = modes + changedmodes = set(modes) changedusers = [] namelist = [] @@ -534,7 +534,7 @@ class P10Protocol(Protocol): last_prefixes = prefixes if prefixes: for prefix in prefixes: - changedmodes.append(('+%s' % prefix, user)) + changedmodes.add(('+%s' % prefix, user)) self.irc.users[user].channels.add(channel)