Unverified Commit 9c8bf936 authored by mathieui's avatar mathieui

plugins: do not fire private_msg event on own messages

parent 47ce3154
Pipeline #3507 passed with stages
in 6 minutes and 15 seconds
......@@ -865,7 +865,8 @@ class HandlerCore:
mto=jid.full, mbody=msg, mtype='chat')
self.core.events.trigger('private_msg', message, tab)
if not sent:
self.core.events.trigger('private_msg', message, tab)
body = xhtml.get_body_from_message_stanza(
message, use_xhtml=use_xhtml, extract_images_to=tmp_dir)
if not body or not tab:
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment