From 8b37e235946af19c115326585a602ec238fc5934 Mon Sep 17 00:00:00 2001 From: James Lu Date: Sat, 8 Aug 2015 18:42:25 +0800 Subject: [PATCH] ircutils: fix Python 2.6 compatibility --- src/ircutils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ircutils.py b/src/ircutils.py index 97084394e..1aca65556 100644 --- a/src/ircutils.py +++ b/src/ircutils.py @@ -434,7 +434,7 @@ def formatWhois(irc, replies, caller='', channel='', command='whois'): continue # Skip +s/+p channels the target is in only if the reply isn't # being sent to that channel. - if {'s', 'p'} & set(chanState.modes.keys()) and \ + if set(('p', 's')) & set(chanState.modes.keys()) and \ not strEqual(channel or '', chan): continue if not modes: