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

20 lines
497 B
C#
Raw Permalink Normal View History

2022-08-30 15:05:29 +00:00
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.";
}
}
}