Make sure the channel is joined before trying to leave it

fix #3243
This commit is contained in:
louiz’
2017-04-19 23:33:48 +02:00
parent 47ff1cd311
commit 51696c091c
3 changed files with 22 additions and 9 deletions
+1 -1
View File
@@ -169,7 +169,7 @@ public:
/**
* Send an unavailable presence from this participant
*/
void send_muc_leave(const Iid& iid, std::string&& nick, const std::string& message, const bool self, const std::string& resource = "");
void send_muc_leave(const Iid& iid, const std::string& nick, const std::string& message, const bool self, const std::string& resource = "");
/**
* Send presences to indicate that an user old_nick (ourself if self ==
* true) changed his nick to new_nick. The user_mode is needed because