Use msg.tagged instead of deprecated IrcMsg.__getattr__ API.

This commit is contained in:
Valentin Lorentz 2017-03-25 22:03:03 +01:00
parent 62616a34d3
commit 5665f2f477

View File

@ -395,7 +395,7 @@ def prettyPrint(msg, addRecipients=False, timestampFormat=None, showNick=True):
s = '*** %s is now known as %s' % (msg.nick, msg.args[0])
else:
s = utils.str.format('--- Unknown command %q', ' '.join(msg.args))
at = getattr(msg, 'receivedAt', None)
at = msg.tagged('receivedAt')
if timestampFormat and at:
s = '%s %s' % (time.strftime(timestampFormat, time.localtime(at)), s)
return s