mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-11-23 11:09:23 +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])
|
s = '*** %s is now known as %s' % (msg.nick, msg.args[0])
|
||||||
else:
|
else:
|
||||||
s = utils.str.format('--- Unknown command %q', ' '.join(msg.args))
|
s = utils.str.format('--- Unknown command %q', ' '.join(msg.args))
|
||||||
at = getattr(msg, 'receivedAt', None)
|
at = msg.tagged('receivedAt')
|
||||||
if timestampFormat and at:
|
if timestampFormat and at:
|
||||||
s = '%s %s' % (time.strftime(timestampFormat, time.localtime(at)), s)
|
s = '%s %s' % (time.strftime(timestampFormat, time.localtime(at)), s)
|
||||||
return s
|
return s
|
||||||
|
Loading…
Reference in New Issue
Block a user