1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 08:08:12 +00:00

IRCClient: Connect to IRC server URL specified in command line argument

The IRCClient application can now connect to a specified IRC server using
a URL with `irc://` protocol as a command line argument.
This commit is contained in:
Brendan Coles 2020-04-22 21:57:45 +00:00 committed by Andreas Kling
parent c3b2bfabfe
commit 3c9693c6c7
5 changed files with 39 additions and 10 deletions

View file

@ -49,8 +49,8 @@ IRCAppWindow& IRCAppWindow::the()
return *s_the;
}
IRCAppWindow::IRCAppWindow()
: m_client(IRCClient::construct())
IRCAppWindow::IRCAppWindow(String server, int port)
: m_client(IRCClient::construct(server, port))
{
ASSERT(!s_the);
s_the = this;