fix simple_notify to not notify one messages from yourself in MUCs
This commit is contained in:
parent
51025b8d78
commit
a68ace1971
1 changed files with 4 additions and 0 deletions
|
@ -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(',')
|
||||
|
|
Loading…
Reference in a new issue