summaryrefslogtreecommitdiff
path: root/src/xmpp/xmpp_component.hpp
diff options
context:
space:
mode:
authorFlorent Le Coz <louiz@louiz.org>2014-06-19 22:22:29 +0200
committerFlorent Le Coz <louiz@louiz.org>2014-06-19 22:22:29 +0200
commit2117838cf9fb083f6f74386abbb56e3b28d4db46 (patch)
treea70c1d2a9522b04ff9a66ae2e91441f1372455df /src/xmpp/xmpp_component.hpp
parent26ffc8fe121e03e1b663aa0015a71b0fc914f95e (diff)
downloadbiboumi-2117838cf9fb083f6f74386abbb56e3b28d4db46.tar.gz
biboumi-2117838cf9fb083f6f74386abbb56e3b28d4db46.tar.bz2
biboumi-2117838cf9fb083f6f74386abbb56e3b28d4db46.tar.xz
biboumi-2117838cf9fb083f6f74386abbb56e3b28d4db46.zip
Return a proper iq when the IRC server responds to our kick
A result or an error, depending on the type of message
Diffstat (limited to 'src/xmpp/xmpp_component.hpp')
-rw-r--r--src/xmpp/xmpp_component.hpp7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/xmpp/xmpp_component.hpp b/src/xmpp/xmpp_component.hpp
index 17462f4..ac12e40 100644
--- a/src/xmpp/xmpp_component.hpp
+++ b/src/xmpp/xmpp_component.hpp
@@ -104,7 +104,8 @@ public:
*/
void send_stanza_error(const std::string& kind, const std::string& to, const std::string& from,
const std::string& id, const std::string& error_type,
- const std::string& defined_condition, const std::string& text);
+ const std::string& defined_condition, const std::string& text,
+ const bool fulljid=true);
/**
* Send the closing signal for our document (not closing the connection though).
*/
@@ -209,6 +210,10 @@ public:
void send_iq_version_request(const std::string& from,
const std::string& jid_to);
/**
+ * Send an empty iq of type result
+ */
+ void send_iq_result(const std::string& id, const std::string& to_jid, const std::string& from);
+ /**
* Handle the various stanza types
*/
void handle_handshake(const Stanza& stanza);