core: renamed "MessageReceived" trigger to "messageReceived" for consistency.
This commit is contained in:
parent
8fa4cd0f86
commit
3b64263f3b
1 changed files with 24 additions and 24 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue