mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 14:38:11 +00:00
IRCClient: Open query window immediately when created by the user.
When handling "/query nick", we now immediately switch to the new query.
This commit is contained in:
parent
85674aa498
commit
5e6c1c6912
5 changed files with 37 additions and 7 deletions
|
@ -1,3 +1,4 @@
|
|||
#include "IRCAppWindow.h"
|
||||
#include "IRCClient.h"
|
||||
#include "IRCChannel.h"
|
||||
#include "IRCLogBuffer.h"
|
||||
|
@ -607,8 +608,10 @@ void IRCClient::handle_user_command(const String& input)
|
|||
return;
|
||||
}
|
||||
if (command == "/QUERY") {
|
||||
if (parts.size() >= 2)
|
||||
ensure_query(parts[1]);
|
||||
if (parts.size() >= 2) {
|
||||
auto& query = ensure_query(parts[1]);
|
||||
IRCAppWindow::the().set_active_window(query.window());
|
||||
}
|
||||
return;
|
||||
}
|
||||
if (command == "/WHOIS") {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue