summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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)