Wait I just realized, you’re reading from the buffer after you’re already logged into the IRC server so you won’t receive the registration messages. Create a thread to read from the buffer and start the thread before you log into the server. Then log into server and you should see the registration messages.
So, something like this:
private void
Login()
{
ExceptionUtil.ThrowIfNull(irc_user, nameof(irc_user), QuickDisconnect);
ExceptionUtil.ThrowIfInvalid(irc_user.nick, nameof(irc_user.nick), QuickDisconnect);
ExceptionUtil.ThrowIfInvalid(irc_user.pass, nameof(irc_user.pass), QuickDisconnect);
stream = new NetworkStream(socket);
if (port == 443)
{
stream = new SslStream(stream, false);
((SslStream)stream).AuthenticateAsClient(host);
}
OnSocketConnected.Raise(this, EventArgs.Empty);
reader_thread = new Thread(new ThreadStart(ReadStream));
reader_thread.Start();
do
{
Thread.Sleep(5);
}
while (!reading);
Send("PASS oauth:" + irc_user.pass);
Send("NICK " + irc_user.nick);
}