aboutsummaryrefslogtreecommitdiff
path: root/source/QXmppPingIq.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'source/QXmppPingIq.cpp')
-rw-r--r--source/QXmppPingIq.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/source/QXmppPingIq.cpp b/source/QXmppPingIq.cpp
index ccf34cf6..3b29139d 100644
--- a/source/QXmppPingIq.cpp
+++ b/source/QXmppPingIq.cpp
@@ -34,7 +34,8 @@ QXmppPingIq::QXmppPingIq() : QXmppIq(QXmppIq::Get)
bool QXmppPingIq::isPingIq( QDomElement &element )
{
QDomElement pingElement = element.firstChildElement("ping");
- return (pingElement.namespaceURI() == ns_ping);
+ return (element.attribute("type") == "get" &&
+ pingElement.namespaceURI() == ns_ping);
}
void QXmppPingIq::toXmlElementFromChild(QXmlStreamWriter *writer) const