From 69b265b975fd9b1111d00e1086921061319bd26b Mon Sep 17 00:00:00 2001 From: mathieui Date: Thu, 4 Feb 2021 18:56:18 +0100 Subject: 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. --- slixmpp/plugins/xep_0405/mix_pam.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'slixmpp/plugins/xep_0405') diff --git a/slixmpp/plugins/xep_0405/mix_pam.py b/slixmpp/plugins/xep_0405/mix_pam.py index f8e5a9d9..437ca792 100644 --- a/slixmpp/plugins/xep_0405/mix_pam.py +++ b/slixmpp/plugins/xep_0405/mix_pam.py @@ -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: -- cgit v1.2.3