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.
This commit is contained in:
@@ -219,6 +219,13 @@ void IrcClient::on_channel_message(const IrcMessage& message)
|
||||
iid.chan = nick;
|
||||
muc = false;
|
||||
}
|
||||
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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user