From a6d9ee029fb8da7b57ac4c75b88d0b397f56b455 Mon Sep 17 00:00:00 2001 From: Jeremy Fincher Date: Tue, 10 Jun 2003 07:31:11 +0000 Subject: [PATCH] Fixed the null nick problem with the IRC bot's own messages. --- plugins/ChannelLogger.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/plugins/ChannelLogger.py b/plugins/ChannelLogger.py index c99a1f849..056d75ad5 100644 --- a/plugins/ChannelLogger.py +++ b/plugins/ChannelLogger.py @@ -90,10 +90,11 @@ class ChannelLogger(irclib.IrcCallback): if ircutils.isChannel(channel): log = self.getLog(channel) self.timestamp(log) + nick = msg.nick or irc.nick if ircmsgs.isAction(msg): - log.write('* %s %s\n' % (msg.nick, ircmsgs.unAction(msg))) + log.write('* %s %s\n' % (nick, ircmsgs.unAction(msg))) else: - log.write('<%s> %s\n' % (msg.nick, text)) + log.write('<%s> %s\n' % (nick, text)) def doNotice(self, irc, msg): (recipients, text) = msg.args