Network: make whois reply more clear

Mention that it's possible that whoised user has channel list hiding
umode. This umode is usually +i, but I say "channel list hiding umode",
because +i is not always the umode which hides user list.

For example Quakenet always forces mode +i to every user and it cannot
be unset, but channel list is still visible. Some other IRCds can have
different modes to hide channel lists than +i.
This commit is contained in:
Mikaela Suomalainen 2014-12-08 08:21:29 +02:00
parent 5fdf8c3c9e
commit 8fbf5193e6

View File

@ -243,7 +243,7 @@ class Network(callbacks.Plugin):
L.append(format(_('is on %L'), normal))
else:
if command == 'whois':
L = [_('isn\'t on any non-secret channels')]
L = [_('isn\'t on any non-secret channels or has channel list hiding umode')]
else:
L = []
channels = format('%L', L)