~singpolyma/biboumi

4f6bf078d2e60cab47f43a09decc12aa4fba08ef — louiz’ 4 years ago 08fabd0
Improve the forward_server_message to concatenate everything
1 files changed, 3 insertions(+), 1 deletions(-)

M src/irc/irc_client.cpp
M src/irc/irc_client.cpp => src/irc/irc_client.cpp +3 -1
@@ 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);
}