Forward iq version results to IRC

This commit is contained in:
Florent Le Coz
2014-05-07 02:02:47 +02:00
parent 04fe15a1e7
commit 579ca4bdb6
5 changed files with 32 additions and 6 deletions
+2 -2
View File
@@ -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;
}
+1 -1
View File
@@ -88,7 +88,7 @@ public:
/**
* Send a PRIVMSG command for an user
*/
void send_private_message(const std::string& username, const std::string& body);
void send_private_message(const std::string& username, const std::string& body, const std::string& type);
/**
* Send the PART irc command
*/