From 85f53ecc3d5c5494042c6c2d74979cdb2b440554 Mon Sep 17 00:00:00 2001 From: Ian Geiser Date: Thu, 12 Nov 2009 03:07:53 +0000 Subject: Split interfaces correctly --- source/QXmppRemoteMethod.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'source/QXmppRemoteMethod.cpp') 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 #include +#include 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 ); } -- cgit v1.2.3