diff sat/core/xmpp.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 39d7327583e1
children 343b8076e967
line wrap: on
line diff
--- a/sat/core/xmpp.py	Tue Feb 18 18:13:18 2020 +0100
+++ b/sat/core/xmpp.py	Tue Feb 18 18:13:19 2020 +0100
@@ -1081,7 +1081,7 @@
     def _onMessageStartWorkflow(self, cont, client, message_elt, post_treat):
         """Parse message and do post treatments
 
-        It is the first callback called after MessageReceived trigger
+        It is the first callback called after messageReceived trigger
         @param cont(bool): workflow will continue only if this is True
         @param message_elt(domish.Element): message stanza
             may have be modified by triggers
@@ -1108,7 +1108,7 @@
         post_treat = defer.Deferred()
 
         d = self.host.trigger.asyncPoint(
-            "MessageReceived", client, message_elt, post_treat
+            "messageReceived", client, message_elt, post_treat
         )
 
         d.addCallback(self._onMessageStartWorkflow, client, message_elt, post_treat)