mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 03:17:34 +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
|
@ -60,6 +60,15 @@ public:
|
|||
const IRCWindow& window_at(int index) const { return *m_windows.at(index); }
|
||||
IRCWindow& window_at(int index) { return *m_windows.at(index); }
|
||||
|
||||
int window_index(const IRCWindow& window) const
|
||||
{
|
||||
for (int i = 0; i < m_windows.size(); ++i) {
|
||||
if (m_windows[i] == &window)
|
||||
return i;
|
||||
}
|
||||
return -1;
|
||||
}
|
||||
|
||||
void did_part_from_channel(Badge<IRCChannel>, IRCChannel&);
|
||||
|
||||
void handle_user_input_in_channel(const String& channel_name, const String&);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue