summaryrefslogtreecommitdiff
path: root/src/bridge/bridge.hpp
diff options
context:
space:
mode:
authorFlorent Le Coz <louiz@louiz.org>2014-02-17 01:43:58 +0100
committerFlorent Le Coz <louiz@louiz.org>2014-02-17 01:43:58 +0100
commitcf9f3a1f2855b358aa9bbc31f234801e9e1efc28 (patch)
treea89ac719df9cd7cbd4fa02e1994ce7eb34180f43 /src/bridge/bridge.hpp
parentabcf16bc28a5f72d9e7f964a5f2b432f55dfe5b6 (diff)
downloadbiboumi-cf9f3a1f2855b358aa9bbc31f234801e9e1efc28.tar.gz
biboumi-cf9f3a1f2855b358aa9bbc31f234801e9e1efc28.tar.bz2
biboumi-cf9f3a1f2855b358aa9bbc31f234801e9e1efc28.tar.xz
biboumi-cf9f3a1f2855b358aa9bbc31f234801e9e1efc28.zip
Include role and affiliation in the join presence of the nick change process
Diffstat (limited to 'src/bridge/bridge.hpp')
-rw-r--r--src/bridge/bridge.hpp12
1 files changed, 9 insertions, 3 deletions
diff --git a/src/bridge/bridge.hpp b/src/bridge/bridge.hpp
index c43b049..b3a5d02 100644
--- a/src/bridge/bridge.hpp
+++ b/src/bridge/bridge.hpp
@@ -84,9 +84,15 @@ public:
void send_muc_leave(Iid&& iid, std::string&& nick, const std::string& message, const bool self);
/**
* Send presences to indicate that an user old_nick (ourself if self ==
- * true) changed his nick to new_nick
- */
- void send_nick_change(Iid&& iid, const std::string& old_nick, const std::string& new_nick, const bool self);
+ * true) changed his nick to new_nick. The user_mode is needed because
+ * the xmpp presence needs ton contain the role and affiliation of the
+ * user.
+ */
+ void send_nick_change(Iid&& iid,
+ const std::string& old_nick,
+ const std::string& new_nick,
+ const char user_mode,
+ const bool self);
void kick_muc_user(Iid&& iid, const std::string& target, const std::string& reason, const std::string& author);
void send_nickname_conflict_error(const Iid& iid, const std::string& nickname);
/**