Reject messages from unjoined resources, with an error

fix #3346
This commit is contained in:
louiz’
2018-06-19 21:33:33 +02:00
parent fc17ee078f
commit 21a79b7bad
4 changed files with 43 additions and 3 deletions
+2
View File
@@ -316,7 +316,9 @@ private:
*/
void add_resource_to_chan(const ChannelKey& channel, const std::string& resource);
void remove_resource_from_chan(const ChannelKey& channel, const std::string& resource);
public:
bool is_resource_in_chan(const ChannelKey& channel, const std::string& resource) const;
private:
void remove_all_resources_from_chan(const ChannelKey& channel);
std::size_t number_of_resources_in_chan(const ChannelKey& channel) const;