diff sat/plugins/plugin_xep_0249.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_0249.py	Tue Feb 18 18:13:18 2020 +0100
+++ b/sat/plugins/plugin_xep_0249.py	Tue Feb 18 18:13:19 2020 +0100
@@ -94,7 +94,7 @@
         except KeyError:
             log.info(_("Text commands not available"))
         host.registerNamespace('x-conference', NS_X_CONFERENCE)
-        host.trigger.add("MessageReceived", self._MessageReceivedTrigger)
+        host.trigger.add("messageReceived", self._messageReceivedTrigger)
 
     def getHandler(self, client):
         return XEP_0249_handler()
@@ -143,7 +143,7 @@
         d = self.host.plugins["XEP-0045"].join(client, room_jid, client.jid.user, {})
         return d
 
-    def _MessageReceivedTrigger(self, client, message_elt, post_treat):
+    def _messageReceivedTrigger(self, client, message_elt, post_treat):
         """Check if a direct invitation is in the message, and handle it"""
         x_elt = next(message_elt.elements(NS_X_CONFERENCE, 'x'), None)
         if x_elt is None: