diff sat/plugins/plugin_exp_parrot.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 6cf4bd6972c2
line wrap: on
line diff
--- a/sat/plugins/plugin_exp_parrot.py	Tue Feb 18 18:13:18 2020 +0100
+++ b/sat/plugins/plugin_exp_parrot.py	Tue Feb 18 18:13:19 2020 +0100
@@ -55,7 +55,7 @@
     def __init__(self, host):
         log.info(_("Plugin Parrot initialization"))
         self.host = host
-        host.trigger.add("MessageReceived", self.MessageReceivedTrigger, priority=100)
+        host.trigger.add("messageReceived", self.messageReceivedTrigger, priority=100)
         # host.trigger.add("sendMessage", self.sendMessageTrigger, priority=100)
         try:
             self.host.plugins[C.TEXT_CMDS].registerTextCommands(self)
@@ -73,7 +73,7 @@
     #        log.debug("Parrot link detected, skipping other triggers")
     #        raise trigger.SkipOtherTriggers
 
-    def MessageReceivedTrigger(self, client, message_elt, post_treat):
+    def messageReceivedTrigger(self, client, message_elt, post_treat):
         """ Check if source is linked and repeat message, else do nothing  """
         # TODO: many things are not repeated (subject, thread, etc)
         profile = client.profile