Add support for password-protected IRC rooms.

This commit is contained in:
Emmanuel Gil Peyrot
2015-01-14 12:38:46 +01:00
parent e2e2f30894
commit e4fcbd3030
5 changed files with 9 additions and 7 deletions
+1 -1
View File
@@ -58,7 +58,7 @@ public:
* 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);
bool join_irc_channel(const Iid& iid, const std::string& username, const std::string& password = "");
void send_channel_message(const Iid& iid, const std::string& body);
void send_private_message(const Iid& iid, const std::string& body, const std::string& type="PRIVMSG");
void leave_irc_channel(Iid&& iid, std::string&& status_message);