diff options
author | Emmanuel Gil Peyrot <linkmauve@linkmauve.fr> | 2015-01-14 12:38:46 +0100 |
---|---|---|
committer | Emmanuel Gil Peyrot <linkmauve@linkmauve.fr> | 2015-01-14 12:38:46 +0100 |
commit | e4fcbd3030f033c24102db9f6b6abfb540332c9d (patch) | |
tree | c3a491ccab00c1b77c52f138869a636cfe69880d /src/irc/irc_client.cpp | |
parent | e2e2f3089469e3e2acbdf1ac6902241d994057c6 (diff) | |
download | biboumi-e4fcbd3030f033c24102db9f6b6abfb540332c9d.tar.gz biboumi-e4fcbd3030f033c24102db9f6b6abfb540332c9d.tar.bz2 biboumi-e4fcbd3030f033c24102db9f6b6abfb540332c9d.tar.xz biboumi-e4fcbd3030f033c24102db9f6b6abfb540332c9d.zip |
Add support for password-protected IRC rooms.
Diffstat (limited to 'src/irc/irc_client.cpp')
-rw-r--r-- | src/irc/irc_client.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/irc/irc_client.cpp b/src/irc/irc_client.cpp index b892684..a29fb0a 100644 --- a/src/irc/irc_client.cpp +++ b/src/irc/irc_client.cpp @@ -206,12 +206,12 @@ void IrcClient::send_quit_command(const std::string& reason) this->send_message(IrcMessage("QUIT", {reason})); } -void IrcClient::send_join_command(const std::string& chan_name) +void IrcClient::send_join_command(const std::string& chan_name, const std::string& password) { if (this->welcomed == false) this->channels_to_join.push_back(chan_name); else - this->send_message(IrcMessage("JOIN", {chan_name})); + this->send_message(IrcMessage("JOIN", {chan_name, password})); this->start(); } |