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

20 lines
525 B
C#
Raw Normal View History

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