Add NICK handling to prettyPrint. Prepping for non-PRIVMSG Seen tracking

This commit is contained in:
James Vega 2004-12-30 02:43:21 +00:00
parent 034fb54bd2
commit 5aa41afdcd
1 changed files with 2 additions and 0 deletions

View File

@ -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)