summaryrefslogtreecommitdiff
path: root/src/irc/irc_client.cpp
diff options
context:
space:
mode:
authorFlorent Le Coz <louiz@louiz.org>2015-05-07 17:01:17 +0200
committerFlorent Le Coz <louiz@louiz.org>2015-05-07 17:01:17 +0200
commit0a6b673b14efc4f623ea445045e6fc60e9842a25 (patch)
tree88fef4dced68ef3c616fe1575d5c542b0474b56a /src/irc/irc_client.cpp
parente24ed4f70c22142029fa8e6cf5b874e8bc261bc3 (diff)
downloadbiboumi-0a6b673b14efc4f623ea445045e6fc60e9842a25.tar.gz
biboumi-0a6b673b14efc4f623ea445045e6fc60e9842a25.tar.bz2
biboumi-0a6b673b14efc4f623ea445045e6fc60e9842a25.tar.xz
biboumi-0a6b673b14efc4f623ea445045e6fc60e9842a25.zip
Support raw IRC messages
Messages received on an IRC server JID are forwarded as raw IRC messages. fix #2486
Diffstat (limited to 'src/irc/irc_client.cpp')
-rw-r--r--src/irc/irc_client.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/irc/irc_client.cpp b/src/irc/irc_client.cpp
index b0ce93a..717f7e3 100644
--- a/src/irc/irc_client.cpp
+++ b/src/irc/irc_client.cpp
@@ -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}));