summaryrefslogtreecommitdiff
path: root/src/xmpp/xmpp_component.hpp
diff options
context:
space:
mode:
authorFlorent Le Coz <louiz@louiz.org>2014-06-18 11:46:28 +0200
committerFlorent Le Coz <louiz@louiz.org>2014-06-20 11:51:49 +0200
commit545ab11ff3a334b242ba2d7fc87e2b6ba0185cb5 (patch)
treec8d914944c0d8061f3db4cb055c26ff6059d297b /src/xmpp/xmpp_component.hpp
parentb747f2825c43e31ade20267cecefe2c2a9c76241 (diff)
downloadbiboumi-545ab11ff3a334b242ba2d7fc87e2b6ba0185cb5.tar.gz
biboumi-545ab11ff3a334b242ba2d7fc87e2b6ba0185cb5.tar.bz2
biboumi-545ab11ff3a334b242ba2d7fc87e2b6ba0185cb5.tar.xz
biboumi-545ab11ff3a334b242ba2d7fc87e2b6ba0185cb5.zip
Support version request to IRC users
Diffstat (limited to 'src/xmpp/xmpp_component.hpp')
-rw-r--r--src/xmpp/xmpp_component.hpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/xmpp/xmpp_component.hpp b/src/xmpp/xmpp_component.hpp
index ab1d584..ce594ec 100644
--- a/src/xmpp/xmpp_component.hpp
+++ b/src/xmpp/xmpp_component.hpp
@@ -200,9 +200,11 @@ public:
*/
void send_self_disco_info(const std::string& id, const std::string& jid_to);
/**
- * Send a result IQ with the gateway version.
+ * Send a result IQ with the given version, or the gateway version if the
+ * passed string is empty.
*/
- void send_self_version(const std::string& id, const std::string& jid_to, const std::string& jid_from);
+ void send_version(const std::string& id, const std::string& jid_to, const std::string& jid_from,
+ const std::string& version="");
/**
* Send the list of all available ad-hoc commands to that JID. The list is
* different depending on what JID made the request.