comparison sat/plugins/plugin_xep_0353.py @ 4051:c23cad65ae99

core: renamed `messageReceived` trigger to `message_received`
author Goffi <goffi@goffi.org>
date Mon, 29 May 2023 13:32:08 +0200
parents 3900626bc100
children 38819c69aa39
comparison
equal deleted inserted replaced
4050:199473ffe4ea 4051:c23cad65ae99
53 log.info(_("plugin {name} initialization").format(name=PLUGIN_INFO[C.PI_NAME])) 53 log.info(_("plugin {name} initialization").format(name=PLUGIN_INFO[C.PI_NAME]))
54 self.host = host 54 self.host = host
55 host.register_namespace("jingle-message", NS_JINGLE_MESSAGE) 55 host.register_namespace("jingle-message", NS_JINGLE_MESSAGE)
56 self._j = host.plugins["XEP-0166"] 56 self._j = host.plugins["XEP-0166"]
57 host.trigger.add("XEP-0166_initiate", self._on_initiate_trigger) 57 host.trigger.add("XEP-0166_initiate", self._on_initiate_trigger)
58 host.trigger.add("messageReceived", self._on_message_received) 58 host.trigger.add("message_received", self._on_message_received)
59 59
60 def get_handler(self, client): 60 def get_handler(self, client):
61 return Handler() 61 return Handler()
62 62
63 def profile_connecting(self, client): 63 def profile_connecting(self, client):