diff sat/plugins/plugin_sec_otr.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 330a5f1d9eea
children 2f406b762788
line wrap: on
line diff
--- a/sat/plugins/plugin_sec_otr.py	Tue Feb 18 18:13:18 2020 +0100
+++ b/sat/plugins/plugin_sec_otr.py	Tue Feb 18 18:13:19 2020 +0100
@@ -313,7 +313,7 @@
         )  #  FIXME: OTR should not be skipped per profile, this need to be refactored
         self._p_hints = host.plugins["XEP-0334"]
         self._p_carbons = host.plugins["XEP-0280"]
-        host.trigger.add("MessageReceived", self.MessageReceivedTrigger, priority=100000)
+        host.trigger.add("messageReceived", self.messageReceivedTrigger, priority=100000)
         host.trigger.add("sendMessage", self.sendMessageTrigger, priority=100000)
         host.trigger.add("sendMessageData", self._sendMessageDataTrigger)
         host.bridge.addMethod(
@@ -730,7 +730,7 @@
             data["history"] = C.HISTORY_SKIP
         return data
 
-    def MessageReceivedTrigger(self, client, message_elt, post_treat):
+    def messageReceivedTrigger(self, client, message_elt, post_treat):
         if message_elt.getAttribute("type") == C.MESS_TYPE_GROUPCHAT:
             # OTR is not possible in group chats
             return True