diff options
| author | Ian Geiser <ian.geiser@gmail.com> | 2009-11-12 03:07:53 +0000 |
|---|---|---|
| committer | Ian Geiser <ian.geiser@gmail.com> | 2009-11-12 03:07:53 +0000 |
| commit | 85f53ecc3d5c5494042c6c2d74979cdb2b440554 (patch) | |
| tree | 52b72a9d7bf35218fdcafd041364e96bc3af5af9 /source | |
| parent | d9745efcd24e547ba0185732bfc9b0c9f931162e (diff) | |
| download | qxmpp-85f53ecc3d5c5494042c6c2d74979cdb2b440554.tar.gz | |
Split interfaces correctly
Diffstat (limited to 'source')
| -rw-r--r-- | source/QXmppRemoteMethod.cpp | 3 |
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 ); } |
