1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 08:38:12 +00:00

IRCClient: Add ability to send query messages.

You can't open a query yet, but if someone starts one with you, you can
respond at least.
This commit is contained in:
Andreas Kling 2019-03-15 18:02:38 +01:00
parent 7e3673f710
commit 08c15be0ca
5 changed files with 21 additions and 3 deletions

View file

@ -30,3 +30,9 @@ void IRCQuery::add_message(char prefix, const String& name, const String& text)
log().add_message(prefix, name, text);
dump();
}
void IRCQuery::say(const String& text)
{
m_client.send_privmsg(m_name, text);
add_message(' ', m_client.nickname(), text);
}