Merge pull request #1148 from GLolol/patch-1

ircutils.formatWhois: ignore channels that have +p set
This commit is contained in:
Valentin Lorentz 2015-08-08 20:37:17 +02:00
commit ed9f9d0794

View File

@ -432,9 +432,9 @@ def formatWhois(irc, replies, caller='', channel='', command='whois'):
# target is +i.
if caller not in chanState.users:
continue
# Skip +s channels the target is in only if the reply isn't
# Skip +s/+p channels the target is in only if the reply isn't
# being sent to that channel.
if 's' in chanState.modes and \
if set(('p', 's')) & set(chanState.modes.keys()) and \
not strEqual(channel or '', chan):
continue
if not modes: