Support raw IRC messages

Messages received on an IRC server JID are forwarded as raw IRC messages.

fix #2486
This commit is contained in:
Florent Le Coz
2015-05-07 17:01:17 +02:00
parent e24ed4f70c
commit 0a6b673b14
6 changed files with 37 additions and 0 deletions
+5
View File
@@ -181,6 +181,11 @@ void IrcClient::send_message(IrcMessage&& message)
this->send_data(std::move(res));
}
void IrcClient::send_raw(const std::string& txt)
{
this->send_data(txt + "\r\n");
}
void IrcClient::send_user_command(const std::string& username, const std::string& realname)
{
this->send_message(IrcMessage("USER", {username, "ignored", "ignored", realname}));