public Line(Line line) { Client = line.Client; RawString = line.RawString; RawStringParts = line.RawStringParts; Prefix = line.Prefix; Command = line.Command; Target = line.Target; Message = line.Message; }
public KickLine(Line line) : base(line) { KickeeNickname = this[3]; }
public NumericLine(Line line, int numeric) : base(line) { if (!IrcUtils.IsChannel(Target)) { var numericParts = line.RawStringParts.Skip(1).TakeWhile(p => !p.StartsWith(":")); AltTarget = numericParts.LastOrDefault(IrcUtils.IsChannel); if (AltTarget == null) AltTarget = numericParts.LastOrDefault(); } Numeric = (NumericCommand)numeric; }
public JoinLine(Line line) : base(line) { if (Message != null) // don't overwrite the target if it was already set properly by the IRCd Target = Message; }
public NicknameSetLine(Line line) : base(line) { NewNickname = Message; }