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:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user