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

20 lines
514 B
C#
Raw Permalink Normal View History

2022-08-30 15:05:29 +00:00
using System;
namespace SharpChat.Protocol.IRC.Replies {
public class ErroneousNickNameReply : Reply {
public const int CODE = 432;
public override int ReplyCode => CODE;
private string NickName { get; }
public ErroneousNickNameReply(string nickName) {
NickName = nickName ?? throw new ArgumentNullException(nameof(nickName));
}
protected override string BuildLine() {
return $@"{NickName} :Erroneous nickname";
}
}
}