Mercurial > libervia-backend
diff sat/plugins/plugin_exp_command_export.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 | be6d91572633 |
line wrap: on
line diff
--- a/sat/plugins/plugin_exp_command_export.py Tue Feb 18 18:13:18 2020 +0100 +++ b/sat/plugins/plugin_exp_command_export.py Tue Feb 18 18:13:19 2020 +0100 @@ -92,7 +92,7 @@ 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 @@ 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 @@ - 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: