diff options
author | louiz’ <louiz@louiz.org> | 2016-08-17 20:44:00 +0200 |
---|---|---|
committer | louiz’ <louiz@louiz.org> | 2016-08-17 20:47:33 +0200 |
commit | 5406de35a39c935a19460da06bf3dcd3948a00d5 (patch) | |
tree | ab40950828e7d7060826e2189a71880f5aa10886 /src/bridge/bridge.hpp | |
parent | a4ab1db55f8ca8e130528eed01eeee04ffc8369d (diff) | |
download | biboumi-5406de35a39c935a19460da06bf3dcd3948a00d5.tar.gz biboumi-5406de35a39c935a19460da06bf3dcd3948a00d5.tar.bz2 biboumi-5406de35a39c935a19460da06bf3dcd3948a00d5.tar.xz biboumi-5406de35a39c935a19460da06bf3dcd3948a00d5.zip |
On a client error, do not QUIT, just make the resource leave all channels
This should fix #3205
Diffstat (limited to 'src/bridge/bridge.hpp')
-rw-r--r-- | src/bridge/bridge.hpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/bridge/bridge.hpp b/src/bridge/bridge.hpp index a1ff3ad..bcad030 100644 --- a/src/bridge/bridge.hpp +++ b/src/bridge/bridge.hpp @@ -45,6 +45,10 @@ public: */ void shutdown(const std::string& exit_message); /** + * PART the given resource from all the channels + */ + void remove_resource(const std::string& resource, const std::string& part_message); + /** * Remove all inactive IrcClients */ void clean(); @@ -70,7 +74,7 @@ public: void send_channel_message(const Iid& iid, const std::string& body); void send_private_message(const Iid& iid, const std::string& body, const std::string& type="PRIVMSG"); void send_raw_message(const std::string& hostname, const std::string& body); - void leave_irc_channel(Iid&& iid, std::string&& status_message, const std::string& resource); + void leave_irc_channel(Iid&& iid, const std::string& status_message, const std::string& resource); void send_irc_nick_change(const Iid& iid, const std::string& new_nick); void send_irc_kick(const Iid& iid, const std::string& target, const std::string& reason, const std::string& iq_id, const std::string& to_jid); |