comparison sat/plugins/plugin_sec_otr.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 524856bd7b19
children
comparison
equal deleted inserted replaced
4050:199473ffe4ea 4051:c23cad65ae99
312 self.skipped_profiles = ( 312 self.skipped_profiles = (
313 set() 313 set()
314 ) #  FIXME: OTR should not be skipped per profile, this need to be refactored 314 ) #  FIXME: OTR should not be skipped per profile, this need to be refactored
315 self._p_hints = host.plugins["XEP-0334"] 315 self._p_hints = host.plugins["XEP-0334"]
316 self._p_carbons = host.plugins["XEP-0280"] 316 self._p_carbons = host.plugins["XEP-0280"]
317 host.trigger.add("messageReceived", self.message_received_trigger, priority=100000) 317 host.trigger.add("message_received", self.message_received_trigger, priority=100000)
318 host.trigger.add("sendMessage", self.send_message_trigger, priority=100000) 318 host.trigger.add("sendMessage", self.send_message_trigger, priority=100000)
319 host.trigger.add("send_message_data", self._send_message_data_trigger) 319 host.trigger.add("send_message_data", self._send_message_data_trigger)
320 host.bridge.add_method( 320 host.bridge.add_method(
321 "skip_otr", ".plugin", in_sign="s", out_sign="", method=self._skip_otr 321 "skip_otr", ".plugin", in_sign="s", out_sign="", method=self._skip_otr
322 ) # FIXME: must be removed, must be done on per-message basis 322 ) # FIXME: must be removed, must be done on per-message basis