diff options
author | louiz’ <louiz@louiz.org> | 2018-05-15 19:29:37 +0200 |
---|---|---|
committer | louiz’ <louiz@louiz.org> | 2018-05-15 19:34:54 +0200 |
commit | 4f6bf078d2e60cab47f43a09decc12aa4fba08ef (patch) | |
tree | aaf26f9630468181d2a74d1e4046ebd4e3299d01 /src | |
parent | 08fabd0a10f01dab3971398768a32e6fef177434 (diff) | |
download | biboumi-4f6bf078d2e60cab47f43a09decc12aa4fba08ef.tar.gz biboumi-4f6bf078d2e60cab47f43a09decc12aa4fba08ef.tar.bz2 biboumi-4f6bf078d2e60cab47f43a09decc12aa4fba08ef.tar.xz biboumi-4f6bf078d2e60cab47f43a09decc12aa4fba08ef.zip |
Improve the forward_server_message to concatenate everything
Diffstat (limited to 'src')
-rw-r--r-- | src/irc/irc_client.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/irc/irc_client.cpp b/src/irc/irc_client.cpp index 8f77e0d..fca043c 100644 --- a/src/irc/irc_client.cpp +++ b/src/irc/irc_client.cpp @@ -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); } |