Fixed the null nick problem with the IRC bot's own messages.

This commit is contained in:
Jeremy Fincher 2003-06-10 07:31:11 +00:00
parent d9b994f6fe
commit a6d9ee029f

View File

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