~singpolyma/biboumi

61ecaab40078901800e3e20282f1ae7852a7c938 — Florent Le Coz 10 years ago 3c5cdec
Re-add support for /me messages from IRC

It was recently removed because it was handled in the old "convert irc
colors" code. It now is in the right place.
1 files changed, 8 insertions(+), 1 deletions(-)

M src/irc/irc_client.cpp
M src/irc/irc_client.cpp => src/irc/irc_client.cpp +8 -1
@@ 219,7 219,14 @@ void IrcClient::on_channel_message(const IrcMessage& message)
      iid.chan = nick;
      muc = false;
    }
  this->bridge->send_message(iid, nick, body, muc);
  if (!body.empty() && body[0] == '\01')
    {
      if (body.substr(1, 6) == "ACTION")
        this->bridge->send_message(iid, nick,
                  std::string("/me") + body.substr(7, body.size() - 8), muc);
    }
  else
    this->bridge->send_message(iid, nick, body, muc);
}

void IrcClient::empty_motd(const IrcMessage& message)