Handle nickname conflicts by sending the correct XMPP error presence

This commit is contained in:
Florent Le Coz
2014-01-04 01:59:35 +01:00
parent e8e592d1ac
commit 43cc60e4a9
6 changed files with 58 additions and 2 deletions
+6
View File
@@ -107,6 +107,12 @@ public:
const std::string& reason,
const std::string& author,
const std::string& jid_to);
/**
* Send a presence type=error with a conflict element
*/
void send_nickname_conflict_error(const std::string& muc_name,
const std::string& nickname,
const std::string& jid_to);
/**
* Handle the various stanza types
*/