[Logger] Log our own messages

master
ShadowNinja 2014-03-09 04:12:17 -05:00
parent 5b1e1aa0e3
commit 3359ea7ce4
1 changed files with 7 additions and 0 deletions

View File

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