From 3359ea7ce4c93414128f4219f25023407664995c Mon Sep 17 00:00:00 2001 From: ShadowNinja Date: Sun, 9 Mar 2014 04:12:17 -0500 Subject: [PATCH] [Logger] Log our own messages --- Logger/plugin.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/Logger/plugin.py b/Logger/plugin.py index d2c2785..a2270d2 100644 --- a/Logger/plugin.py +++ b/Logger/plugin.py @@ -127,5 +127,12 @@ class Logger(callbacks.Plugin): reason) self.db.commit() + def outFilter(self, irc, msg): + # Log our own messages + if msg.command in ('PRIVMSG', 'NOTICE'): + # Other messages should be sent back to us. + self(irc, ircmsgs.IrcMsg(msg=msg, prefix=irc.prefix)) + return msg + Class = Logger