sharp-chat/SharpChat.Protocol.IRC/Replies/BadChannelKeyReply.cs
2022-08-30 17:05:29 +02:00

22 lines
588 B
C#

using SharpChat.Channels;
using SharpChat.Protocol.IRC.Channels;
using System;
namespace SharpChat.Protocol.IRC.Replies {
public class BadChannelKeyReply : Reply {
public const int CODE = 475;
public override int ReplyCode => CODE;
private IChannel Channel { get; }
public BadChannelKeyReply(IChannel channel) {
Channel = channel ?? throw new ArgumentNullException(nameof(channel));
}
protected override string BuildLine() {
return $@"{Channel.GetIRCName()} :Cannot join channel (+k)";
}
}
}