aboutsummaryrefslogtreecommitdiff
path: root/source
diff options
context:
space:
mode:
Diffstat (limited to 'source')
-rw-r--r--source/QXmppRemoteMethod.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/source/QXmppRemoteMethod.cpp b/source/QXmppRemoteMethod.cpp
index 835a67bf..b0770df1 100644
--- a/source/QXmppRemoteMethod.cpp
+++ b/source/QXmppRemoteMethod.cpp
@@ -5,6 +5,7 @@
#include <QEventLoop>
#include <QTimer>
+#include <qdebug.h>
QXmppRemoteMethod::QXmppRemoteMethod(const QString &jid, const QString &method, const QVariantList &args, QXmppClient *client) :
QObject(client), m_client(client)
@@ -12,7 +13,7 @@ QXmppRemoteMethod::QXmppRemoteMethod(const QString &jid, const QString &method,
m_payload.setId( generateStanzaHash() );
m_payload.setTo( jid );
m_payload.setFrom( client->getConfiguration().getJid() );
- m_payload.setInterface( method.section('.', 0 ) );
+ m_payload.setInterface( method.section('.', 0, 0 ) );
m_payload.setMethod( method.section('.', 1) );
m_payload.setPayload( args );
}