summaryrefslogtreecommitdiff
path: root/slixmpp/plugins/xep_0405
diff options
context:
space:
mode:
authormathieui <mathieui@mathieui.net>2021-02-04 18:56:18 +0100
committermathieui <mathieui@mathieui.net>2021-02-04 19:25:55 +0100
commit69b265b975fd9b1111d00e1086921061319bd26b (patch)
tree31902f6ca9b816ce82b70dd09e05d0ef5f384bc3 /slixmpp/plugins/xep_0405
parent917cb555d504bf9bb217870582fdac3f48365985 (diff)
downloadslixmpp-69b265b975fd9b1111d00e1086921061319bd26b.tar.gz
slixmpp-69b265b975fd9b1111d00e1086921061319bd26b.tar.bz2
slixmpp-69b265b975fd9b1111d00e1086921061319bd26b.tar.xz
slixmpp-69b265b975fd9b1111d00e1086921061319bd26b.zip
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.
Diffstat (limited to 'slixmpp/plugins/xep_0405')
-rw-r--r--slixmpp/plugins/xep_0405/mix_pam.py2
1 files changed, 1 insertions, 1 deletions
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: