public IrcNumericReplyLine(string inputline) { string[] rawsplit = inputline.Split(' '); source = rawsplit[0]; replycode = (IrcReplyCode)int.Parse(rawsplit[1]); target = rawsplit[2]; if (rawsplit.Length > 3) { message = string.Join(" ", rawsplit.Skip(3).ToArray()).TrimStart(':'); } else { message = ""; // No message } }
/// <summary> /// Creates a new instance of <see cref="IrcErrorEventArgs"/>. /// </summary> /// <param name="error">The type of error that has occured.</param> /// <param name="data">The raw IRC statement data. This can be used to garner more information about the error.</param> public IrcErrorEventArgs(IrcReplyCode error, IrcStatement data) { Throw.If.Null(error, "error").Null(data, "data"); Error = error; Data = data; }