plugin XEP-0471: renamed "events" plugin to XEP-0471 now that there is a XEP
This commit is contained in:
parent
66842072e3
commit
6981f0e7c6
5 changed files with 16 additions and 16 deletions
|
|
@ -109,7 +109,7 @@ PLUGIN_INFO = {
|
|||
C.PI_DEPENDENCIES: [
|
||||
"XEP-0050", "XEP-0054", "XEP-0060", "XEP-0084", "XEP-0106", "XEP-0277",
|
||||
"XEP-0292", "XEP-0329", "XEP-0372", "XEP-0424", "XEP-0465", "XEP-0470",
|
||||
"XEP-0447", "PUBSUB_CACHE", "TEXT_SYNTAXES", "IDENTITY", "EVENTS"
|
||||
"XEP-0447", "XEP-0471", "PUBSUB_CACHE", "TEXT_SYNTAXES", "IDENTITY"
|
||||
],
|
||||
C.PI_RECOMMENDATIONS: [],
|
||||
C.PI_MAIN: "APGateway",
|
||||
|
|
@ -150,7 +150,7 @@ class APGateway:
|
|||
self._c = host.plugins["PUBSUB_CACHE"]
|
||||
self._t = host.plugins["TEXT_SYNTAXES"]
|
||||
self._i = host.plugins["IDENTITY"]
|
||||
self._events = host.plugins["EVENTS"]
|
||||
self._events = host.plugins["XEP-0471"]
|
||||
self._p.addManagedNode(
|
||||
"",
|
||||
items_cb=self._itemsReceived,
|
||||
|
|
|
|||
|
|
@ -96,7 +96,7 @@ class APEvents:
|
|||
def __init__(self, apg):
|
||||
self.host = apg.host
|
||||
self.apg = apg
|
||||
self._events = self.host.plugins["EVENTS"]
|
||||
self._events = self.host.plugins["XEP-0471"]
|
||||
|
||||
async def event_data_2_ap_item(
|
||||
self, event_data: dict, author_jid: jid.JID, is_new: bool=True
|
||||
|
|
|
|||
|
|
@ -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,
|
||||
|
|
|
|||
|
|
@ -297,7 +297,7 @@ class PubsubLists:
|
|||
async_=True,
|
||||
)
|
||||
|
||||
async def onInvitationPreflight(
|
||||
async def on_invitation_preflight(
|
||||
self,
|
||||
client: SatXMPPEntity,
|
||||
namespace: str,
|
||||
|
|
|
|||
1173
sat/plugins/plugin_xep_0471.py
Normal file
1173
sat/plugins/plugin_xep_0471.py
Normal file
File diff suppressed because it is too large
Load diff
Loading…
Reference in a new issue