summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'Swiften/Parser')
-rw-r--r--Swiften/Parser/StreamErrorParser.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/Swiften/Parser/StreamErrorParser.cpp b/Swiften/Parser/StreamErrorParser.cpp
index b121ef2..3d30d77 100644
--- a/Swiften/Parser/StreamErrorParser.cpp
+++ b/Swiften/Parser/StreamErrorParser.cpp
@@ -15,9 +15,9 @@ void StreamErrorParser::handleStartElement(const String&, const String&, const A
++level;
}
-void StreamErrorParser::handleEndElement(const String& element, const String&) {
+void StreamErrorParser::handleEndElement(const String& element, const String& ns) {
--level;
- if (level == ElementLevel) {
+ if (level == ElementLevel && ns == "urn:ietf:params:xml:ns:xmpp-streams") {
if (element == "text") {
getElementGeneric()->setText(currentText);
}