mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-12-24 03:33:11 +01:00
Fixed the null nick problem with the IRC bot's own messages.
This commit is contained in:
parent
d9b994f6fe
commit
a6d9ee029f
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user