Network: Fix @whois for Python 3.

This commit is contained in:
Valentin Lorentz 2013-07-12 17:21:35 +00:00
parent baa4430291
commit 20ff06f3dd

View File

@ -252,11 +252,10 @@ class Network(callbacks.Plugin):
identify = ''
if command == 'whois':
s = _('%s (%s) has been%s on server %s since %s (idle for %s) and '
'%s.%s').decode('utf8') % (user, hostmask, identify, server,
'%s.%s') % (user, hostmask, identify, server,
signon, idle, channels, away)
else:
s = _('%s (%s) has been%s on server %s and disconnect on %s.') \
.decode('utf8') % \
s = _('%s (%s) has been%s on server %s and disconnect on %s.') % \
(user, hostmask, identify, server, signoff)
replyIrc.reply(s)
del self._whois[(irc, loweredNick)]