From 5aa41afdcd56630557f571dee1360e090478b2d2 Mon Sep 17 00:00:00 2001 From: James Vega Date: Thu, 30 Dec 2004 02:43:21 +0000 Subject: [PATCH] Add NICK handling to prettyPrint. Prepping for non-PRIVMSG Seen tracking --- src/ircmsgs.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/ircmsgs.py b/src/ircmsgs.py index 83a3e82ba..57aa5a145 100644 --- a/src/ircmsgs.py +++ b/src/ircmsgs.py @@ -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)