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

20 lines
534 B
C#
Raw Normal View History

2022-08-30 15:05:29 +00:00
using System;
namespace SharpChat.Protocol.IRC.Replies {
public class YourHostReply : Reply {
public const int CODE = 2;
public override int ReplyCode => CODE;
private IRCServer Server { get; }
public YourHostReply(IRCServer server) {
Server = server ?? throw new ArgumentNullException(nameof(server));
}
protected override string BuildLine() {
return $@":Your host is {Server.ServerHost}, running version {SharpInfo.ProgramName}";
}
}
}