summaryrefslogtreecommitdiff
path: root/src/bridge
diff options
context:
space:
mode:
authorFlorent Le Coz <louiz@louiz.org>2014-05-06 22:50:37 +0200
committerFlorent Le Coz <louiz@louiz.org>2014-05-06 22:50:37 +0200
commit5ec05cb0edda6b01ff5c21a42edf9142b90399e5 (patch)
treed18e94ef0f8184a18e776defea1895343c597b83 /src/bridge
parentf35db5cebaf1b9e267a7f2341699bb50fbc54c65 (diff)
downloadbiboumi-5ec05cb0edda6b01ff5c21a42edf9142b90399e5.tar.gz
biboumi-5ec05cb0edda6b01ff5c21a42edf9142b90399e5.tar.bz2
biboumi-5ec05cb0edda6b01ff5c21a42edf9142b90399e5.tar.xz
biboumi-5ec05cb0edda6b01ff5c21a42edf9142b90399e5.zip
Forward CTCP version request to XMPP
Diffstat (limited to 'src/bridge')
-rw-r--r--src/bridge/bridge.cpp5
-rw-r--r--src/bridge/bridge.hpp4
2 files changed, 9 insertions, 0 deletions
diff --git a/src/bridge/bridge.cpp b/src/bridge/bridge.cpp
index aa88262..6c85722 100644
--- a/src/bridge/bridge.cpp
+++ b/src/bridge/bridge.cpp
@@ -304,3 +304,8 @@ void Bridge::send_affiliation_role_change(const Iid& iid, const std::string& tar
std::tie(role, affiliation) = get_role_affiliation_from_irc_mode(mode);
this->xmpp->send_affiliation_role_change(iid.chan + "%" + iid.server, target, affiliation, role, this->user_jid);
}
+
+void Bridge::send_iq_version_request(const std::string& nick, const std::string& hostname)
+{
+ this->xmpp->send_iq_version_request(nick + "%" + hostname, this->user_jid);
+}
diff --git a/src/bridge/bridge.hpp b/src/bridge/bridge.hpp
index e16ea39..f2da8d7 100644
--- a/src/bridge/bridge.hpp
+++ b/src/bridge/bridge.hpp
@@ -99,6 +99,10 @@ public:
* Send a role/affiliation change, matching the change of mode for that user
*/
void send_affiliation_role_change(const Iid& iid, const std::string& target, const char mode);
+ /**
+ * Send an iq version request coming from nick%hostname@
+ */
+ void send_iq_version_request(const std::string& nick, const std::string& hostname);
/**
* Misc