fix simple_notify to not notify one messages from yourself in MUCs

This commit is contained in:
Lasse Aagren 2016-05-23 16:01:11 +02:00 committed by louiz’
parent 51025b8d78
commit a68ace1971

View file

@ -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(',')