mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-12-24 03:33:11 +01:00
Use msg.tagged instead of deprecated IrcMsg.__getattr__ API.
This commit is contained in:
parent
62616a34d3
commit
5665f2f477
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user