mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-12-24 03:33:11 +01:00
Let's only log one of our non-{PRIVMSG,NOTICE} outgoing messages.
This commit is contained in:
parent
3bc1a1fa8b
commit
e9b5f0ec61
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user