mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 04:17:35 +00:00
IRCClient: Add a little "(n)" indicator to window list for unread messages.
This commit is contained in:
parent
1394677528
commit
b4f787090c
9 changed files with 68 additions and 14 deletions
|
@ -237,8 +237,10 @@ void IRCClient::handle(const Message& msg, const String&)
|
|||
if (msg.command == "PRIVMSG")
|
||||
return handle_privmsg(msg);
|
||||
|
||||
if (msg.arguments.size() >= 2)
|
||||
if (msg.arguments.size() >= 2) {
|
||||
m_log->add_message(0, "Server", String::format("[%s] %s", msg.command.characters(), msg.arguments[1].characters()));
|
||||
m_server_subwindow->did_add_message();
|
||||
}
|
||||
}
|
||||
|
||||
void IRCClient::send_privmsg(const String& target, const String& text)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue