comparison sat/plugins/plugin_xep_0033.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
77 self.host = host 77 self.host = host
78 self.internal_data = {} 78 self.internal_data = {}
79 host.trigger.add( 79 host.trigger.add(
80 "sendMessage", self.send_message_trigger, trigger.TriggerManager.MIN_PRIORITY 80 "sendMessage", self.send_message_trigger, trigger.TriggerManager.MIN_PRIORITY
81 ) 81 )
82 host.trigger.add("messageReceived", self.message_received_trigger) 82 host.trigger.add("message_received", self.message_received_trigger)
83 83
84 def send_message_trigger( 84 def send_message_trigger(
85 self, client, mess_data, pre_xml_treatments, post_xml_treatments 85 self, client, mess_data, pre_xml_treatments, post_xml_treatments
86 ): 86 ):
87 """Process the XEP-0033 related data to be sent""" 87 """Process the XEP-0033 related data to be sent"""