Properly remove the resource from the server when we leave the last channel

This commit is contained in:
louiz’
2016-07-03 16:01:15 +02:00
parent dadfc349d9
commit 0ce75ab521
3 changed files with 59 additions and 3 deletions
+1
View File
@@ -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.