mirror of
https://github.com/Mikaela/Limnoria.git
synced 2025-01-12 05:02:32 +01:00
Merge pull request #1148 from GLolol/patch-1
ircutils.formatWhois: ignore channels that have +p set
This commit is contained in:
commit
ed9f9d0794
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user