Use generic send_presence_error() instead of almost identical specializations

This commit is contained in:
Florent Le Coz
2014-08-08 00:46:27 +02:00
parent 7d99ba8dd9
commit e3ea0d62c7
5 changed files with 24 additions and 50 deletions
+6 -11
View File
@@ -171,21 +171,16 @@ 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);
/**
* Send a generic presence error
*/
void send_presence_error(const std::string& muc_name,
const std::string& nickname,
const std::string& jid_to,
const std::string& type,
const std::string& condition,
const std::string& text);
const std::string& nickname,
const std::string& jid_to,
const std::string& type,
const std::string& condition,
const std::string& error_code,
const std::string& text);
/**
* Send a presence from the MUC indicating a change in the role and/or
* affiliation of a participant