mirror of
https://github.com/fergalmoran/ladybird.git
synced 2026-02-19 22:25:36 +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:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user