// Login: Log into the IRC server public void Login(AuthentificationInformations ai) { // If the client isn't connected, return if (!IsConnected) { return; } // Send the login informations and join the wanted channel SendData(new string[] { "PASS " + ai.Password, "NICK " + ai.Nick, "JOIN #" + currentChannel }); }
// Login: Log into the IRC server public void Login(AuthentificationInformations ai) { // If the client isn't connected, return if (!IsConnected) return; // Send the login informations and join the wanted channel SendData(new string[] { "PASS " + ai.Password, "NICK " + ai.Nick, "JOIN #" + currentChannel }); }