summaryrefslogtreecommitdiff
path: root/src/core.py
diff options
context:
space:
mode:
authormathieui <mathieui@mathieui.net>2013-07-16 22:39:36 +0200
committermathieui <mathieui@mathieui.net>2013-08-04 14:50:58 +0200
commitd01f6208d67f6c88584fc1f362dae0a9f2d107d0 (patch)
treef68a0dbd75aa9aa7a557e64811d3470448011116 /src/core.py
parent149687613614553865887167d793e1dd375841bc (diff)
downloadpoezio-d01f6208d67f6c88584fc1f362dae0a9f2d107d0.tar.gz
poezio-d01f6208d67f6c88584fc1f362dae0a9f2d107d0.tar.bz2
poezio-d01f6208d67f6c88584fc1f362dae0a9f2d107d0.tar.xz
poezio-d01f6208d67f6c88584fc1f362dae0a9f2d107d0.zip
If plugins removed the message body in a callback, don’t send it
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 22bc0044..9de53b51 100644
--- a/src/core.py
+++ b/src/core.py
@@ -2885,6 +2885,8 @@ class Core(object):
conversation.nick = remote_nick
self.events.trigger('conversation_msg', message, conversation)
+ if not message['body']:
+ return
body = xhtml.get_body_from_message_stanza(message)
delayed, date = common.find_delayed_tag(message)