core: renamed "MessageReceived" trigger to "messageReceived" for consistency.

This commit is contained in:
Goffi 2020-02-18 18:13:19 +01:00
commit 3b64263f3b

View file

@ -55,7 +55,7 @@ class Exp_Parrot(object):
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 @@ class Exp_Parrot(object):
# 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