diff options
author | lovetox <philipp@hoerist.com> | 2020-03-28 10:50:53 +0300 |
---|---|---|
committer | lovetox <philipp@hoerist.com> | 2020-03-28 10:50:53 +0300 |
commit | 087a2798bb13d1840972184bf2991f9ec74bd38e (patch) | |
tree | 9eb5f375b773fbcfb8501a6f1a6a189fafb1ea24 | |
parent | 80ec5753de06bc8e92dd49b2aec4f8b13ec8401d (diff) |
RSM: Parse correct node
-rw-r--r-- | nbxmpp/modules/rsm.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/nbxmpp/modules/rsm.py b/nbxmpp/modules/rsm.py index 811148a..89cb094 100644 --- a/nbxmpp/modules/rsm.py +++ b/nbxmpp/modules/rsm.py @@ -21,8 +21,8 @@ from nbxmpp.structs import RSMData def parse_rsm(stanza): - set_ = stanza.getTag('set', namespace=NS_RSM) - if set_ is None: + stanza = stanza.getTag('set', namespace=NS_RSM) + if stanza is None: return None after = stanza.getTagData('after') or None |