Unverified Commit 9c8bf936 authored by mathieui's avatar mathieui

plugins: do not fire private_msg event on own messages

parent 47ce3154
Pipeline #3506 passed with stages
in 3 minutes and 54 seconds
......@@ -865,7 +865,8 @@ class HandlerCore:
self.core.xmpp.send_message(
mto=jid.full, mbody=msg, mtype='chat')
return
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