summaryrefslogtreecommitdiff
path: root/src/xmpp/xmpp_component.hpp
diff options
context:
space:
mode:
authorFlorent Le Coz <louiz@louiz.org>2013-12-27 15:34:58 +0100
committerFlorent Le Coz <louiz@louiz.org>2014-01-04 01:59:35 +0100
commit43cc60e4a9e2859fdf67c89e58ee18cf7571f186 (patch)
treefcf3335a4bc80a825a798cf80dec97fbe06182c7 /src/xmpp/xmpp_component.hpp
parente8e592d1ace5413a1e7d8b59b9467c78d8d68ea9 (diff)
downloadbiboumi-43cc60e4a9e2859fdf67c89e58ee18cf7571f186.tar.gz
biboumi-43cc60e4a9e2859fdf67c89e58ee18cf7571f186.tar.bz2
biboumi-43cc60e4a9e2859fdf67c89e58ee18cf7571f186.tar.xz
biboumi-43cc60e4a9e2859fdf67c89e58ee18cf7571f186.zip
Handle nickname conflicts by sending the correct XMPP error presence
Diffstat (limited to 'src/xmpp/xmpp_component.hpp')
-rw-r--r--src/xmpp/xmpp_component.hpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/xmpp/xmpp_component.hpp b/src/xmpp/xmpp_component.hpp
index d76a2c3..63eb88f 100644
--- a/src/xmpp/xmpp_component.hpp
+++ b/src/xmpp/xmpp_component.hpp
@@ -108,6 +108,12 @@ public:
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
*/
void handle_handshake(const Stanza& stanza);