mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-12-25 04:02:46 +01:00
Network: More minor improvements to 'whois' output
This commit is contained in:
parent
2b324203e7
commit
2628dc03c4
@ -262,7 +262,7 @@ class Network(callbacks.Plugin):
|
|||||||
else:
|
else:
|
||||||
server = _('<unknown>')
|
server = _('<unknown>')
|
||||||
if '301' in d:
|
if '301' in d:
|
||||||
away = ' %s is away: %s.' % (nick, d['301'].args[2])
|
away = ' %s is away: %s.' % (nick, d['301'].args[2])
|
||||||
else:
|
else:
|
||||||
away = ''
|
away = ''
|
||||||
if '320' in d:
|
if '320' in d:
|
||||||
@ -291,9 +291,9 @@ class Network(callbacks.Plugin):
|
|||||||
(replyIrc, replyMsg, d, command) = self._whois[(irc, loweredNick)]
|
(replyIrc, replyMsg, d, command) = self._whois[(irc, loweredNick)]
|
||||||
del self._whois[(irc, loweredNick)]
|
del self._whois[(irc, loweredNick)]
|
||||||
if command == 'whois':
|
if command == 'whois':
|
||||||
template = _('There is no %s on %s.')
|
template = _('There is no user %s on %s.')
|
||||||
else:
|
else:
|
||||||
template = _('There was no %s on %s.')
|
template = _('There was no user %s on %s.')
|
||||||
s = template % (nick, irc.network)
|
s = template % (nick, irc.network)
|
||||||
replyIrc.reply(s)
|
replyIrc.reply(s)
|
||||||
do401 = do402
|
do401 = do402
|
||||||
|
Loading…
Reference in New Issue
Block a user