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

22 lines
588 B
C#
Raw Permalink Normal View History

2022-08-30 15:05:29 +00:00
using SharpChat.Channels;
using SharpChat.Protocol.IRC.Channels;
using System;
namespace SharpChat.Protocol.IRC.Replies {
public class ChannelIsFullReply : Reply {
public const int CODE = 471;
public override int ReplyCode => CODE;
private IChannel Channel { get; }
public ChannelIsFullReply(IChannel channel) {
Channel = channel ?? throw new ArgumentNullException(nameof(channel));
}
protected override string BuildLine() {
return $@"{Channel.GetIRCName()} :Cannot join channel (+l)";
}
}
}