/// <summary> /// Auth /// </summary> /// <param name="curr">XmlNode</param> /// <param name="protocol">Protocol which owns this request</param> public static void sAuth(XmlNode curr, ProtocolSv protocol) { if (curr.InnerText == "INVALID") { protocol.Windows["!root"].scrollback.InsertText("You have supplied wrong password, connection closed", Client.ContentLine.MessageStyle.System, false); protocol.Disconnect(); } if (curr.InnerText == "OK") { protocol.ConnectionStatus = Status.Connected; protocol.Windows["!root"].scrollback.InsertText("You are now logged in to pidgeon bnc", Client.ContentLine.MessageStyle.System, false); protocol.Windows["!root"].scrollback.InsertText(curr.Attributes[0].Value, Client.ContentLine.MessageStyle.System); } return; }