Network: More minor improvements to 'whois' output

This commit is contained in:
James Lu 2014-12-09 18:38:21 -08:00
parent 2b324203e7
commit 2628dc03c4

View File

@ -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