From e9b5f0ec61d34c42202b00c5ecebbd5d614ef144 Mon Sep 17 00:00:00 2001 From: Jeremy Fincher Date: Wed, 20 Oct 2004 08:47:25 +0000 Subject: [PATCH] Let's only log one of our non-{PRIVMSG,NOTICE} outgoing messages. --- plugins/ChannelLogger.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/plugins/ChannelLogger.py b/plugins/ChannelLogger.py index 106a9b948..9470915fa 100644 --- a/plugins/ChannelLogger.py +++ b/plugins/ChannelLogger.py @@ -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