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

19 lines
524 B
C#

using System;
namespace SharpChat.Protocol.IRC.Replies {
public class BadChannelMaskReply : Reply {
public const int CODE = 476;
public override int ReplyCode => CODE;
private string ChannelName { get; }
public BadChannelMaskReply(string channelName) {
ChannelName = channelName ?? throw new ArgumentNullException(nameof(channelName));
}
protected override string BuildLine() {
return $@"{ChannelName} :Bad Channel Mask";
}
}
}