plugin XEP-0471: renamed "events" plugin to XEP-0471 now that there is a XEP

This commit is contained in:
Goffi 2023-03-30 16:47:41 +02:00
commit 6981f0e7c6

View file

@ -147,11 +147,11 @@ class PubsubInvitation:
extra = {}
try:
handler = self._ns_handler[namespace]
preflight = handler.onInvitationPreflight
preflight = handler.on_invitation_preflight
except KeyError:
pass
except AttributeError:
log.debug(f"no onInvitationPreflight method found for {namespace!r}")
log.debug(f"no on_invitation_preflight method found for {namespace!r}")
else:
await utils.asDeferred(
preflight,