summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormathieui <mathieui@mathieui.net>2016-09-20 20:51:21 +0200
committermathieui <mathieui@mathieui.net>2016-09-20 20:51:21 +0200
commit2586abc0d36cbb8eae3540b5cb6d224c90b4b699 (patch)
treeec725fd8a2fcb9bb3a154efa36efff39c7ba92d1
parent28f84ab3d9ff451af717fdf132b1a2a4bf4e0e52 (diff)
downloadslixmpp-2586abc0d36cbb8eae3540b5cb6d224c90b4b699.tar.gz
slixmpp-2586abc0d36cbb8eae3540b5cb6d224c90b4b699.tar.bz2
slixmpp-2586abc0d36cbb8eae3540b5cb6d224c90b4b699.tar.xz
slixmpp-2586abc0d36cbb8eae3540b5cb6d224c90b4b699.zip
Fix xep-0050 stanza
broken in 3a9b45e4f279
-rw-r--r--slixmpp/plugins/xep_0050/stanza.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/slixmpp/plugins/xep_0050/stanza.py b/slixmpp/plugins/xep_0050/stanza.py
index 128a75cd..107135f4 100644
--- a/slixmpp/plugins/xep_0050/stanza.py
+++ b/slixmpp/plugins/xep_0050/stanza.py
@@ -136,7 +136,7 @@ class Command(ElementBase):
('error', 'The command ran, but had errors')]
"""
notes = []
- notes_xml = self.findall('{%s}note' % self.namespace)
+ notes_xml = self.xml.findall('{%s}note' % self.namespace)
for note in notes_xml:
notes.append((note.attrib.get('type', 'info'),
note.text))
@@ -167,7 +167,7 @@ class Command(ElementBase):
"""
Remove all notes associated with the command result.
"""
- notes_xml = self.findall('{%s}note' % self.namespace)
+ notes_xml = self.xml.findall('{%s}note' % self.namespace)
for note in notes_xml:
self.xml.remove(note)