diff sat/plugins/plugin_xep_0380.py @ 2759:607cfc79e40f

plugin XEP-0380: register namespace
author Goffi <goffi@goffi.org>
date Sun, 06 Jan 2019 17:34:56 +0100
parents 3bea6b5ae972
children ab2696e34d29
line wrap: on
line diff
--- a/sat/plugins/plugin_xep_0380.py	Sun Jan 06 17:33:53 2019 +0100
+++ b/sat/plugins/plugin_xep_0380.py	Sun Jan 06 17:34:56 2019 +0100
@@ -49,6 +49,7 @@
         self.host = host
         host.trigger.add("sendMessage", self._sendMessageTrigger)
         host.trigger.add("MessageReceived", self._MessageReceivedTrigger, priority=100)
+        host.registerNamespace(u"eme", NS_EME)
 
     def _addEMEElement(self, mess_data, namespace, name):
         message_elt = mess_data[u'xml']