comparison sat/plugins/plugin_exp_events.py @ 2935:4f600b4ae819

plugin events: register namespace using "event" short name
author Goffi <goffi@goffi.org>
date Fri, 03 May 2019 20:42:21 +0200
parents b256e90612d0
children 83cbd4545274
comparison
equal deleted inserted replaced
2934:0bafdbda7f5f 2935:4f600b4ae819
58 log.info(_(u"Event plugin initialization")) 58 log.info(_(u"Event plugin initialization"))
59 self.host = host 59 self.host = host
60 self._p = self.host.plugins["XEP-0060"] 60 self._p = self.host.plugins["XEP-0060"]
61 self._i = self.host.plugins.get("EMAIL_INVITATION") 61 self._i = self.host.plugins.get("EMAIL_INVITATION")
62 self._b = self.host.plugins.get("XEP-0277") 62 self._b = self.host.plugins.get("XEP-0277")
63 self.host.registerNamespace(u"event", NS_EVENT)
63 self.host.plugins[u"INVITATION"].registerNamespace(NS_EVENT, 64 self.host.plugins[u"INVITATION"].registerNamespace(NS_EVENT,
64 self.register) 65 self.register)
65 host.bridge.addMethod( 66 host.bridge.addMethod(
66 "eventGet", 67 "eventGet",
67 ".plugin", 68 ".plugin",