From 4873bab7405f94fe0bb984a495d86bb5d83c78d7 Mon Sep 17 00:00:00 2001 From: mathieui Date: Sat, 5 Jan 2013 15:55:45 +0100 Subject: [PATCH] Do not display messages if they have an empty body after the hook --- src/core.py | 2 ++ 1 file changed, 2 insertions(+) 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: