diff options
author | Lasse Aagren <laa@one.com> | 2016-05-23 16:01:11 +0200 |
---|---|---|
committer | louiz’ <louiz@louiz.org> | 2016-05-23 16:21:54 +0200 |
commit | a68ace1971015cd6e4fb3b7973430215928794f8 (patch) | |
tree | 5dd489b9df6f6b0ec2d15549571a809e653d4dc0 /plugins | |
parent | 51025b8d7841deebb6c7873208b79f5fba5a4d9c (diff) | |
download | poezio-a68ace1971015cd6e4fb3b7973430215928794f8.tar.gz poezio-a68ace1971015cd6e4fb3b7973430215928794f8.tar.bz2 poezio-a68ace1971015cd6e4fb3b7973430215928794f8.tar.xz poezio-a68ace1971015cd6e4fb3b7973430215928794f8.zip |
fix simple_notify to not notify one messages from yourself in MUCs
Diffstat (limited to 'plugins')
-rw-r--r-- | plugins/simple_notify.py | 4 |
1 files changed, 4 insertions, 0 deletions
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(',') |