diff options
author | louiz’ <louiz@louiz.org> | 2016-11-15 00:23:19 +0100 |
---|---|---|
committer | louiz’ <louiz@louiz.org> | 2016-11-15 00:23:19 +0100 |
commit | d872c2b49214c0a4db40a9e2d860802d9eedc563 (patch) | |
tree | cccd27de262b2823d126a48c82455d208696dbdc /src/bridge | |
parent | ed7e66471f7018f2e7e1c6a469e5cd758b913255 (diff) | |
download | biboumi-d872c2b49214c0a4db40a9e2d860802d9eedc563.tar.gz biboumi-d872c2b49214c0a4db40a9e2d860802d9eedc563.tar.bz2 biboumi-d872c2b49214c0a4db40a9e2d860802d9eedc563.tar.xz biboumi-d872c2b49214c0a4db40a9e2d860802d9eedc563.zip |
Support the ident protocol
fix #3211
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 a0ecc6e..6fb03bd 100644 --- a/src/bridge/bridge.cpp +++ b/src/bridge/bridge.cpp @@ -1033,6 +1033,11 @@ std::unordered_map<std::string, std::shared_ptr<IrcClient>>& Bridge::get_irc_cli return this->irc_clients; } +const std::unordered_map<std::string, std::shared_ptr<IrcClient>>& Bridge::get_irc_clients() const +{ + return this->irc_clients; +} + std::set<char> Bridge::get_chantypes(const std::string& hostname) const { IrcClient* irc = this->find_irc_client(hostname); diff --git a/src/bridge/bridge.hpp b/src/bridge/bridge.hpp index 18ebfeb..8f2dcef 100644 --- a/src/bridge/bridge.hpp +++ b/src/bridge/bridge.hpp @@ -231,6 +231,7 @@ public: */ 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(); + const std::unordered_map<std::string, std::shared_ptr<IrcClient>>& get_irc_clients() const; std::set<char> get_chantypes(const std::string& hostname) const; #ifdef USE_DATABASE void set_record_history(const bool val); |