core: renamed messageReceived trigger to message_received

This commit is contained in:
Goffi 2023-05-29 13:32:08 +02:00
commit 1781694141

View file

@ -100,7 +100,7 @@ class XEP_0071(object):
self.XHTML2XHTML_IM,
[self._s.OPT_HIDDEN],
)
host.trigger.add("messageReceived", self.message_received_trigger)
host.trigger.add("message_received", self.message_received_trigger)
host.trigger.add("sendMessage", self.send_message_trigger)
def get_handler(self, client):
@ -109,7 +109,7 @@ class XEP_0071(object):
def _message_post_treat(self, data, message_elt, body_elts, client):
"""Callback which manage the post treatment of the message in case of XHTML-IM found
@param data: data send by messageReceived trigger through post_treat deferred
@param data: data send by message_received trigger through post_treat deferred
@param message_elt: whole <message> stanza
@param body_elts: XHTML-IM body elements found
@return: the data with the extra parameter updated