sharp-chat/SharpChat.Protocol.IRC/ClientCommands/InfoCommand.cs

16 lines
468 B
C#
Raw Permalink Normal View History

2022-08-30 15:05:29 +00:00
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());
}
}
}