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

19 lines
497 B
C#

using System;
namespace SharpChat.Protocol.IRC.Replies {
public class NoSuchNickReply : Reply {
public const int CODE = 401;
public override int ReplyCode => CODE;
private string UserName { get; }
public NoSuchNickReply(string userName) {
UserName = userName ?? throw new ArgumentNullException(nameof(userName));
}
protected override string BuildLine() {
return $@"{UserName} :User not found.";
}
}
}