From d74e3148b473651419ca51bf30ec9001c09afae7 Mon Sep 17 00:00:00 2001 From: James Lu Date: Thu, 16 Jul 2015 10:14:00 -0700 Subject: [PATCH] ircutils.formatWhois: ignore channels that have +p set --- src/ircutils.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/ircutils.py b/src/ircutils.py index 606d32f5d..97084394e 100644 --- a/src/ircutils.py +++ b/src/ircutils.py @@ -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 {'s', 'p'} & set(chanState.modes.keys()) and \ not strEqual(channel or '', chan): continue if not modes: