Commit a68ace19 authored by Lasse Aagren's avatar Lasse Aagren Committed by louiz’
Browse files

fix simple_notify to not notify one messages from yourself in MUCs

parent 51025b8d
......@@ -112,6 +112,10 @@ class Plugin(BasePlugin):
self.do_notify(message, fro)
def on_muc_msg(self, message, tab):
# Dont notify if message is from yourself
if message['from'].resource == tab.own_nick:
return
fro = message['from'].full
muc = message['from'].bare
whitelist=self.config.get('muc_list', '').split(',')
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment