comparison sat/plugins/plugin_exp_invitation_pubsub.py @ 4027:26c3e1bc7fb7

plugin XEP-0471: renamed "events" plugin to XEP-0471 now that there is a XEP
author Goffi <goffi@goffi.org>
date Thu, 30 Mar 2023 16:47:41 +0200
parents edc79cefe968
children 524856bd7b19
comparison
equal deleted inserted replaced
4026:fe4725bf42fb 4027:26c3e1bc7fb7
145 ) -> None: 145 ) -> None:
146 if extra is None: 146 if extra is None:
147 extra = {} 147 extra = {}
148 try: 148 try:
149 handler = self._ns_handler[namespace] 149 handler = self._ns_handler[namespace]
150 preflight = handler.onInvitationPreflight 150 preflight = handler.on_invitation_preflight
151 except KeyError: 151 except KeyError:
152 pass 152 pass
153 except AttributeError: 153 except AttributeError:
154 log.debug(f"no onInvitationPreflight method found for {namespace!r}") 154 log.debug(f"no on_invitation_preflight method found for {namespace!r}")
155 else: 155 else:
156 await utils.asDeferred( 156 await utils.asDeferred(
157 preflight, 157 preflight,
158 client, namespace, name, extra, service, node, item_id, item_elt 158 client, namespace, name, extra, service, node, item_id, item_elt
159 ) 159 )