Exemple #1
0
		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;
		}
Exemple #2
0
		public KickLine(Line line)
			: base(line)
		{
			KickeeNickname = this[3];
		}
Exemple #3
0
		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;
		}
Exemple #4
0
		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;
		}
Exemple #5
0
		public NicknameSetLine(Line line)
			: base(line)
		{
			NewNickname = Message;
		}