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

20 lines
534 B
C#

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}";
}
}
}