comparison sat/plugins/plugin_xep_0384.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 cd90c24b2836
children 8d92d4d829fb
comparison
equal deleted inserted replaced
3171:d073d82d9044 3172:dcebc585c29f
391 self._p_hints = host.plugins["XEP-0334"] 391 self._p_hints = host.plugins["XEP-0334"]
392 self._p_carbons = host.plugins["XEP-0280"] 392 self._p_carbons = host.plugins["XEP-0280"]
393 self._p = host.plugins["XEP-0060"] 393 self._p = host.plugins["XEP-0060"]
394 self._m = host.plugins.get("XEP-0045") 394 self._m = host.plugins.get("XEP-0045")
395 self._sid = host.plugins.get("XEP-0359") 395 self._sid = host.plugins.get("XEP-0359")
396 host.trigger.add("MessageReceived", self._messageReceivedTrigger, priority=100050) 396 host.trigger.add("messageReceived", self._messageReceivedTrigger, priority=100050)
397 host.trigger.add("sendMessageData", self._sendMessageDataTrigger) 397 host.trigger.add("sendMessageData", self._sendMessageDataTrigger)
398 self.host.registerEncryptionPlugin(self, "OMEMO", NS_OMEMO, 100) 398 self.host.registerEncryptionPlugin(self, "OMEMO", NS_OMEMO, 100)
399 pep = host.plugins['XEP-0163'] 399 pep = host.plugins['XEP-0163']
400 pep.addPEPEvent("OMEMO_DEVICES", NS_OMEMO_DEVICES, self.onNewDevices) 400 pep.addPEPEvent("OMEMO_DEVICES", NS_OMEMO_DEVICES, self.onNewDevices)
401 401