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