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
commit 3c9693c6c7
Notes: sideshowbarker 2024-07-19 07:23:25 +09:00
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;