summaryrefslogtreecommitdiff
path: root/src/core.py
diff options
context:
space:
mode:
Diffstat (limited to 'src/core.py')
-rw-r--r--src/core.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/core.py b/src/core.py
index 76f5026e..79dbad94 100644
--- a/src/core.py
+++ b/src/core.py
@@ -481,6 +481,8 @@ class Core(object):
if not room:
return
body = xhtml.get_body_from_message_stanza(message)
+ if not body:
+ return
room.add_message(body, time=None, nickname=nick_from,
forced_user=self.get_room_by_name(room_from).get_user_by_name(nick_from))
conversation = self.get_tab_by_name(jid.full, tabs.PrivateTab)