onCommandQuit

Sends a IRCEvent.Type.QUIT event to the server.

If any extra text is following the "quit" command, it uses that as the quit reason. Otherwise it falls back to what is specified in the configuration file.

version(WithAdminPlugin)
private
@IRCEventHandler().onEvent(IRCEvent.Type.CHAN).onEvent(IRCEvent.Type.QUERY).permissionsRequired(Permissions.admin).channelPolicy(ChannelPolicy.home).addCommand(IRCEventHandler.Command().word("quit").policy(PrefixPolicy.nickname).description("Disconnects from the server and exits the program.").addSyntax("$command [optional quit reason]"))
void
onCommandQuit