mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-11-27 05:09:23 +01:00
Add NICK handling to prettyPrint. Prepping for non-PRIVMSG Seen tracking
This commit is contained in:
parent
034fb54bd2
commit
5aa41afdcd
@ -307,6 +307,8 @@ def prettyPrint(msg, addRecipients=False, timestampFormat=None, showNick=True):
|
||||
s = '*** %s has quit IRC%s' % (msg.nick, quitmsg)
|
||||
elif msg.command == 'TOPIC':
|
||||
s = '*** %s changes topic to %s' % (nickorprefix(), msg.args[1])
|
||||
elif msg.command == 'NICK':
|
||||
s = '*** %s is now known as %s' % (msg.nick, msg.args[0])
|
||||
at = getattr(msg, 'receivedAt', None)
|
||||
if timestampFormat and at:
|
||||
s = '%s %s' % (time.strftime(timestampFormat, time.localtime(at)), s)
|
||||
|
Loading…
Reference in New Issue
Block a user