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

20 lines
514 B
C#
Raw Normal View History

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