summaryrefslogtreecommitdiff
path: root/src/bridge/bridge.hpp
diff options
context:
space:
mode:
authorlouiz’ <louiz@louiz.org>2016-07-03 15:43:11 +0200
committerlouiz’ <louiz@louiz.org>2016-07-03 16:01:15 +0200
commit0ce75ab52111ba27ca99961057b36b68f0a135a8 (patch)
tree5602c9c6be700c7f11b4cb12625c8b23fbcc2bd9 /src/bridge/bridge.hpp
parentdadfc349d96ca7d365d5d073e2f10f8f71f16bf2 (diff)
downloadbiboumi-0ce75ab52111ba27ca99961057b36b68f0a135a8.tar.gz
biboumi-0ce75ab52111ba27ca99961057b36b68f0a135a8.tar.bz2
biboumi-0ce75ab52111ba27ca99961057b36b68f0a135a8.tar.xz
biboumi-0ce75ab52111ba27ca99961057b36b68f0a135a8.zip
Properly remove the resource from the server when we leave the last channel
Diffstat (limited to 'src/bridge/bridge.hpp')
-rw-r--r--src/bridge/bridge.hpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/bridge/bridge.hpp b/src/bridge/bridge.hpp
index 6feb282..3430b06 100644
--- a/src/bridge/bridge.hpp
+++ b/src/bridge/bridge.hpp
@@ -278,6 +278,7 @@ private:
void add_resource_to_server(const IrcHostname& irc_hostname, const std::string& resource);
void remove_resource_from_server(const IrcHostname& irc_hostname, const std::string& resource);
bool is_resource_in_server(const IrcHostname& irc_hostname, const std::string& resource) const;
+ size_t number_of_channels_the_resource_is_in(const std::string& irc_hostname, const std::string& resource) const;
/**
* Generate all the stanzas to be sent to this resource, simulating a join on this channel.