Mercurial > libervia-backend
diff sat/plugins/plugin_exp_lang_detect.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_lang_detect.py Tue Feb 18 18:13:18 2020 +0100 +++ b/sat/plugins/plugin_exp_lang_detect.py Tue Feb 18 18:13:19 2020 +0100 @@ -66,7 +66,7 @@ log.info(_("Language detection plugin initialization")) self.host = host host.memory.updateParams(PARAMS) - host.trigger.add("MessageReceived", self.MessageReceivedTrigger) + host.trigger.add("messageReceived", self.messageReceivedTrigger) host.trigger.add("sendMessage", self.MessageSendTrigger) def addLanguage(self, mess_data): @@ -77,7 +77,7 @@ mess_data["message"] = {lang: msg} return mess_data - 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 """ lang_detect = self.host.memory.getParamA(