From a68ace1971015cd6e4fb3b7973430215928794f8 Mon Sep 17 00:00:00 2001 From: Lasse Aagren Date: Mon, 23 May 2016 16:01:11 +0200 Subject: fix simple_notify to not notify one messages from yourself in MUCs --- plugins/simple_notify.py | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'plugins') diff --git a/plugins/simple_notify.py b/plugins/simple_notify.py index 00355fcd..c0c204fd 100644 --- a/plugins/simple_notify.py +++ b/plugins/simple_notify.py @@ -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(',') -- cgit v1.2.3