summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authormathieui <mathieui@mathieui.net>2013-01-05 15:55:45 +0100
committermathieui <mathieui@mathieui.net>2013-01-05 15:55:45 +0100
commit4873bab7405f94fe0bb984a495d86bb5d83c78d7 (patch)
tree681e12fda3cd802b197a1d2abde0c95c15f6d502 /src
parent15fce04294a5e254c3ad04bc1c0d67215976c545 (diff)
downloadpoezio-4873bab7405f94fe0bb984a495d86bb5d83c78d7.tar.gz
poezio-4873bab7405f94fe0bb984a495d86bb5d83c78d7.tar.bz2
poezio-4873bab7405f94fe0bb984a495d86bb5d83c78d7.tar.xz
poezio-4873bab7405f94fe0bb984a495d86bb5d83c78d7.zip
Do not display messages if they have an empty body after the hook
Diffstat (limited to 'src')
-rw-r--r--src/core.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/core.py b/src/core.py
index d6c347fa..646e8188 100644
--- a/src/core.py
+++ b/src/core.py
@@ -2389,6 +2389,8 @@ class Core(object):
conversation = self.get_conversation_by_jid(jid, create=True)
self.events.trigger('conversation_msg', message, conversation)
body = xhtml.get_body_from_message_stanza(message)
+ if not body:
+ return
if jid.bare in roster:
remote_nick = roster[jid.bare].name or jid.user
else: