diff sat/plugins/plugin_xep_0071.py @ 3172:dcebc585c29f

core: renamed "MessageReceived" trigger to "messageReceived" for consistency.
author Goffi <goffi@goffi.org>
date Tue, 18 Feb 2020 18:13:19 +0100
parents 559a625a236b
children be6d91572633
line wrap: on
line diff
--- a/sat/plugins/plugin_xep_0071.py	Tue Feb 18 18:13:18 2020 +0100
+++ b/sat/plugins/plugin_xep_0071.py	Tue Feb 18 18:13:19 2020 +0100
@@ -100,7 +100,7 @@
             self.XHTML2XHTML_IM,
             [self._s.OPT_HIDDEN],
         )
-        host.trigger.add("MessageReceived", self.messageReceivedTrigger)
+        host.trigger.add("messageReceived", self.messageReceivedTrigger)
         host.trigger.add("sendMessage", self.sendMessageTrigger)
 
     def getHandler(self, client):
@@ -109,7 +109,7 @@
     def _messagePostTreat(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 messageReceived 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