ircutils: fix Python 2.6 compatibility

This commit is contained in:
James Lu 2015-08-08 18:42:25 +08:00
parent d74e3148b4
commit 8b37e23594
1 changed files with 1 additions and 1 deletions

View File

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