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

16 lines
468 B
C#

using SharpChat.Protocol.IRC.Replies;
namespace SharpChat.Protocol.IRC.ClientCommands {
public class InfoCommand : IClientCommand {
public const string NAME = @"INFO";
public string CommandName => NAME;
public bool RequireSession => true;
public void HandleCommand(ClientCommandContext ctx) {
ctx.Connection.SendReply(new InfoReply());
ctx.Connection.SendReply(new EndOfInfoReply());
}
}
}