diff options
author | Florent Le Coz <louiz@louiz.org> | 2014-05-07 02:02:47 +0200 |
---|---|---|
committer | Florent Le Coz <louiz@louiz.org> | 2014-05-07 02:02:47 +0200 |
commit | 579ca4bdb6b8806d821daa2ee47d60260b64f0f8 (patch) | |
tree | 769ea0ec97757f94eb3e6b2d1d50e504a8b868a9 /src/irc/irc_client.cpp | |
parent | 04fe15a1e78e2bb20e490b15d45853328545c97d (diff) | |
download | biboumi-579ca4bdb6b8806d821daa2ee47d60260b64f0f8.tar.gz biboumi-579ca4bdb6b8806d821daa2ee47d60260b64f0f8.tar.bz2 biboumi-579ca4bdb6b8806d821daa2ee47d60260b64f0f8.tar.xz biboumi-579ca4bdb6b8806d821daa2ee47d60260b64f0f8.zip |
Forward iq version results to IRC
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 5f70efb..c149311 100644 --- a/src/irc/irc_client.cpp +++ b/src/irc/irc_client.cpp @@ -192,12 +192,12 @@ bool IrcClient::send_channel_message(const std::string& chan_name, const std::st return true; } -void IrcClient::send_private_message(const std::string& username, const std::string& body) +void IrcClient::send_private_message(const std::string& username, const std::string& body, const std::string& type) { std::string::size_type pos = 0; while (pos < body.size()) { - this->send_message(IrcMessage("PRIVMSG", {username, body.substr(pos, 400)})); + this->send_message(IrcMessage(std::string(type), {username, body.substr(pos, 400)})); pos += 400; } |