stanzabase: make _get_plugin part of the public API

it is the only way I know of checking if an element is present in a
stanza without creating it or checking the XML manually.
This commit is contained in:
mathieui
2021-02-04 18:56:18 +01:00
parent 917cb555d5
commit 69b265b975
2 changed files with 23 additions and 15 deletions

View File

@@ -106,7 +106,7 @@ class XEP_0405(BasePlugin):
contacts = []
mix = []
for item in result['roster']:
channel = item._get_plugin('channel', check=True)
channel = item.get_plugin('channel', check=True)
if channel:
mix.append(item)
else: