NZBHags.NNTPConnection.Assert C# (CSharp) Method

Assert() private method

private Assert ( string response, string str ) : void
response string
str string
return void
        private void Assert(string response, string str)
        {
            if (response == "\n")
            {
                response = Response();
            }
            if (!response.Substring(0, 3).Equals(str))
            {
                // abort
                Logging.Instance.Log("(NNTPConnection(" + id + ")) Could not connect... got message: " + response);
                Disconnect();
                return;
            }
        }