diff options
author | Florent Le Coz <louiz@louiz.org> | 2014-05-15 00:27:58 +0200 |
---|---|---|
committer | Florent Le Coz <louiz@louiz.org> | 2014-05-15 00:32:31 +0200 |
commit | bafde1af9f284d8d1daf001d59f4b338e5d2f922 (patch) | |
tree | dab69146d27422c73754c2e929fa4a96cfa902f1 /src/xmpp/xmpp_component.cpp | |
parent | 12c8b1ae0b6f4c2b80d7c787b892ebcaafae6b03 (diff) | |
download | biboumi-bafde1af9f284d8d1daf001d59f4b338e5d2f922.tar.gz biboumi-bafde1af9f284d8d1daf001d59f4b338e5d2f922.tar.bz2 biboumi-bafde1af9f284d8d1daf001d59f4b338e5d2f922.tar.xz biboumi-bafde1af9f284d8d1daf001d59f4b338e5d2f922.zip |
Stanza:get_name() only returns the name of the tag, without the namespace
Diffstat (limited to 'src/xmpp/xmpp_component.cpp')
-rw-r--r-- | src/xmpp/xmpp_component.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/xmpp/xmpp_component.cpp b/src/xmpp/xmpp_component.cpp index aa466f5..b87a023 100644 --- a/src/xmpp/xmpp_component.cpp +++ b/src/xmpp/xmpp_component.cpp @@ -61,15 +61,15 @@ XmppComponent::XmppComponent(const std::string& hostname, const std::string& sec std::placeholders::_1)); this->parser.add_stream_close_callback(std::bind(&XmppComponent::on_remote_stream_close, this, std::placeholders::_1)); - this->stanza_handlers.emplace(COMPONENT_NS":handshake", + this->stanza_handlers.emplace("handshake", std::bind(&XmppComponent::handle_handshake, this,std::placeholders::_1)); - this->stanza_handlers.emplace(COMPONENT_NS":presence", + this->stanza_handlers.emplace("presence", std::bind(&XmppComponent::handle_presence, this,std::placeholders::_1)); - this->stanza_handlers.emplace(COMPONENT_NS":message", + this->stanza_handlers.emplace("message", std::bind(&XmppComponent::handle_message, this,std::placeholders::_1)); - this->stanza_handlers.emplace(COMPONENT_NS":iq", + this->stanza_handlers.emplace("iq", std::bind(&XmppComponent::handle_iq, this,std::placeholders::_1)); - this->stanza_handlers.emplace(STREAM_NS":error", + this->stanza_handlers.emplace("error", std::bind(&XmppComponent::handle_error, this,std::placeholders::_1)); } |