Improve the forward_server_message to concatenate everything

This commit is contained in:
louiz’
2018-05-15 19:34:54 +02:00
parent 08fabd0a10
commit 4f6bf078d2
+3 -1
View File
@@ -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);
}