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:
parent
7e3673f710
commit
08c15be0ca
5 changed files with 21 additions and 3 deletions
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue