sharp-chat/SharpChat.Protocol.IRC/Replies/MotdReply.cs

20 lines
438 B
C#
Raw Permalink Normal View History

2022-08-30 15:05:29 +00:00
using System;
namespace SharpChat.Protocol.IRC.Replies {
public class MotdReply : Reply {
public const int CODE = 372;
public override int ReplyCode => CODE;
private string Line { get; }
public MotdReply(string line) {
Line = line ?? throw new ArgumentNullException(nameof(line));
}
protected override string BuildLine() {
return Line;
}
}
}