Let's only log one of our non-{PRIVMSG,NOTICE} outgoing messages.

This commit is contained in:
Jeremy Fincher 2004-10-20 08:47:25 +00:00
parent 3bc1a1fa8b
commit e9b5f0ec61

View File

@ -291,7 +291,8 @@ class ChannelLogger(callbacks.Privmsg):
def outFilter(self, irc, msg):
# Gotta catch my own messages *somehow* :)
# Let's try this little trick...
if msg.command != 'PART':
if msg.command in ('PRIVMSG', 'NOTICE'):
# Other messages should be sent back to us.
m = ircmsgs.IrcMsg(msg=msg, prefix=irc.prefix)
self(irc, m)
return msg