summaryrefslogtreecommitdiff
path: root/plugins/simple_notify.py
diff options
context:
space:
mode:
authormathieui <mathieui@mathieui.net>2021-02-08 22:50:07 +0100
committermathieui <mathieui@mathieui.net>2021-02-08 22:50:07 +0100
commit6c63cdb5099e1d2b1dff53481c6241f6f3fbf6e2 (patch)
tree7061b2ca6166161e72b6f40ed611ac77b915c290 /plugins/simple_notify.py
parent35af9136627a290b2f07391bd9abdcc6e414e08b (diff)
downloadpoezio-6c63cdb5099e1d2b1dff53481c6241f6f3fbf6e2.tar.gz
poezio-6c63cdb5099e1d2b1dff53481c6241f6f3fbf6e2.tar.bz2
poezio-6c63cdb5099e1d2b1dff53481c6241f6f3fbf6e2.tar.xz
poezio-6c63cdb5099e1d2b1dff53481c6241f6f3fbf6e2.zip
plugins: fix case of self-message
due to the recent change in conversation_msg
Diffstat (limited to 'plugins/simple_notify.py')
-rw-r--r--plugins/simple_notify.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/plugins/simple_notify.py b/plugins/simple_notify.py
index f4dfd2d2..29418f40 100644
--- a/plugins/simple_notify.py
+++ b/plugins/simple_notify.py
@@ -114,7 +114,8 @@ class Plugin(BasePlugin):
def on_conversation_msg(self, message, tab):
fro = message['from'].bare
- self.do_notify(message, fro)
+ if fro.bare != self.core.xmpp.boundjid.bare:
+ self.do_notify(message, fro)
def on_muc_msg(self, message, tab):
# Don't notify if message is from yourself