diff options
author | Florent Le Coz <louiz@louiz.org> | 2015-12-03 21:14:24 +0100 |
---|---|---|
committer | Florent Le Coz <louiz@louiz.org> | 2015-12-03 21:15:22 +0100 |
commit | 1f6eea62f46789c0d3ebe7da133ccad2e59c89c8 (patch) | |
tree | d84086c52ea913fea84aa33d2ef0f6284c24d8e7 /src/bridge | |
parent | 700a6c7bc39aa48af5037ecbb9778b20fb6f87df (diff) | |
download | biboumi-1f6eea62f46789c0d3ebe7da133ccad2e59c89c8.tar.gz biboumi-1f6eea62f46789c0d3ebe7da133ccad2e59c89c8.tar.bz2 biboumi-1f6eea62f46789c0d3ebe7da133ccad2e59c89c8.tar.xz biboumi-1f6eea62f46789c0d3ebe7da133ccad2e59c89c8.zip |
Add an ad-hoc command to disconnect a user from one or more IRC server
fix #3077
Diffstat (limited to 'src/bridge')
-rw-r--r-- | src/bridge/bridge.cpp | 5 | ||||
-rw-r--r-- | src/bridge/bridge.hpp | 1 |
2 files changed, 6 insertions, 0 deletions
diff --git a/src/bridge/bridge.cpp b/src/bridge/bridge.cpp index 5badb18..a1ba71a 100644 --- a/src/bridge/bridge.cpp +++ b/src/bridge/bridge.cpp @@ -690,3 +690,8 @@ void Bridge::trigger_on_irc_message(const std::string& irc_hostname, const IrcMe ++it; } } + +std::unordered_map<std::string, std::shared_ptr<IrcClient>>& Bridge::get_irc_clients() +{ + return this->irc_clients; +} diff --git a/src/bridge/bridge.hpp b/src/bridge/bridge.hpp index f1ecf25..7b8df8f 100644 --- a/src/bridge/bridge.hpp +++ b/src/bridge/bridge.hpp @@ -187,6 +187,7 @@ public: * iq_responder_callback_t and remove the callback from the list. */ void trigger_on_irc_message(const std::string& irc_hostname, const IrcMessage& message); + std::unordered_map<std::string, std::shared_ptr<IrcClient>>& get_irc_clients(); private: /** |