mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-11-02 17:29:22 +01:00
ircutils.formatWhois: ignore channels that have +p set
This commit is contained in:
parent
f85395d8b1
commit
d74e3148b4
@ -432,9 +432,9 @@ def formatWhois(irc, replies, caller='', channel='', command='whois'):
|
|||||||
# target is +i.
|
# target is +i.
|
||||||
if caller not in chanState.users:
|
if caller not in chanState.users:
|
||||||
continue
|
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.
|
# being sent to that channel.
|
||||||
if 's' in chanState.modes and \
|
if {'s', 'p'} & set(chanState.modes.keys()) and \
|
||||||
not strEqual(channel or '', chan):
|
not strEqual(channel or '', chan):
|
||||||
continue
|
continue
|
||||||
if not modes:
|
if not modes:
|
||||||
|
Loading…
Reference in New Issue
Block a user