Commit 4f6bf078 authored by louiz’'s avatar louiz’

Improve the forward_server_message to concatenate everything

parent 08fabd0a
......@@ -536,7 +536,9 @@ void IrcClient::send_ping_command()
void IrcClient::forward_server_message(const IrcMessage& message)
{
const std::string from = message.prefix;
const std::string body = message.arguments[1];
std::string body;
for (auto it = std::next(message.arguments.begin()); it != message.arguments.end(); ++it)
body += *it + ' ';
this->bridge.send_xmpp_message(this->hostname, from, body);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment