aboutsummaryrefslogtreecommitdiff
path: root/src/server/mod_ping.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/server/mod_ping.cpp')
-rw-r--r--src/server/mod_ping.cpp8
1 files changed, 1 insertions, 7 deletions
diff --git a/src/server/mod_ping.cpp b/src/server/mod_ping.cpp
index fcc4d259..82837123 100644
--- a/src/server/mod_ping.cpp
+++ b/src/server/mod_ping.cpp
@@ -38,7 +38,7 @@ QStringList QXmppServerPing::discoveryFeatures() const
bool QXmppServerPing::handleStanza(QXmppStream *stream, const QDomElement &element)
{
- if (element.attribute("to") != m_jid)
+ if (element.attribute("to") != server()->domain())
return false;
// XEP-0199: XMPP Ping
@@ -58,12 +58,6 @@ bool QXmppServerPing::handleStanza(QXmppStream *stream, const QDomElement &eleme
return false;
}
-bool QXmppServerPing::start(QXmppServer *server)
-{
- m_jid = server->domain();
- return true;
-}
-
// PLUGIN
class QXmppServerPingPlugin : public QXmppServerPlugin