summaryrefslogtreecommitdiff
path: root/src/bridge/bridge.hpp
diff options
context:
space:
mode:
authorFlorent Le Coz <louiz@louiz.org>2013-11-11 00:24:34 +0100
committerFlorent Le Coz <louiz@louiz.org>2013-11-11 00:24:34 +0100
commit096a4e3bafe6e2d238e4592f57f22f19f363fcbd (patch)
tree621047f639559200903ec08683dcdfa1bc363615 /src/bridge/bridge.hpp
parentf0d9273da61ce154dbe460cf58c98de851d30615 (diff)
downloadbiboumi-096a4e3bafe6e2d238e4592f57f22f19f363fcbd.tar.gz
biboumi-096a4e3bafe6e2d238e4592f57f22f19f363fcbd.tar.bz2
biboumi-096a4e3bafe6e2d238e4592f57f22f19f363fcbd.tar.xz
biboumi-096a4e3bafe6e2d238e4592f57f22f19f363fcbd.zip
Handle nick changes, both ways
Diffstat (limited to 'src/bridge/bridge.hpp')
-rw-r--r--src/bridge/bridge.hpp19
1 files changed, 17 insertions, 2 deletions
diff --git a/src/bridge/bridge.hpp b/src/bridge/bridge.hpp
index e0f4598..0466ee1 100644
--- a/src/bridge/bridge.hpp
+++ b/src/bridge/bridge.hpp
@@ -30,10 +30,15 @@ public:
**
**/
- void join_irc_channel(const Iid& iid, const std::string& username);
+ /**
+ * Try to join an irc_channel, does nothing and return true if the channel
+ * was already joined.
+ */
+ bool join_irc_channel(const Iid& iid, const std::string& username);
void send_channel_message(const Iid& iid, const std::string& body);
void send_private_message(const Iid& iid, const std::string& body);
void leave_irc_channel(Iid&& iid, std::string&& status_message);
+ void send_irc_nick_change(const Iid& iid, const std::string& new_nick);
/***
**
@@ -65,7 +70,17 @@ public:
/**
* Send an unavailable presence from this participant
*/
- void send_muc_leave(Iid&& iid, std::string&& nick, std::string&& message, const bool self);
+ 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);
+
+ /**
+ * Misc
+ */
+ std::string get_own_nick(const Iid& iid);
private:
/**