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

This commit is contained in:
Goffi 2020-02-18 18:13:19 +01:00
commit 3b64263f3b
15 changed files with 24 additions and 24 deletions

View file

@ -92,7 +92,7 @@ class CommandExport(object):
log.info(_("Plugin command export initialization"))
self.host = host
self.spawned = {} # key = entity
host.trigger.add("MessageReceived", self.MessageReceivedTrigger, priority=10000)
host.trigger.add("messageReceived", self.messageReceivedTrigger, priority=10000)
host.bridge.addMethod(
"exportCommand",
".plugin",
@ -113,7 +113,7 @@ class CommandExport(object):
except ValueError:
pass
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 """
from_jid = jid.JID(message_elt["from"])
spawned_key = (from_jid.userhostJID(), client.profile)
@ -148,7 +148,7 @@ class CommandExport(object):
- exclusive: if set, skip all other triggers
- loop: if set, restart the command once terminated #TODO
- pty: if set, launch in a pseudo terminal
- continue: continue normal MessageReceived handling
- continue: continue normal messageReceived handling
"""
client = self.host.getClient(profile_key)
for target in targets: