Something went wrong. Try again.
[READ-ONLY] Mirror of https://github.com/VibeDevelopers/atheme. Modified fork of atheme IRC Services www.vibetalk.net
Something went wrong. Try again.
12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758/* * SPDX-License-Identifier: ISC * SPDX-URL: https://spdx.org/licenses/ISC.html * * Copyright (C) 2005-2007 Atheme Project (http://atheme.org/) * Copyright (C) 2018 Atheme Development Group (https://atheme.github.io/) * * This file contains routines to handle the GameServ HELP command. */
#include <atheme.h>
static voidgs_cmd_help(struct sourceinfo *const restrict si, const int ATHEME_VATTR_UNUSED parc, char **const restrict parv){ if (parv[0]) { (void) help_display(si, si->service, parv[0], si->service->commands); return; }
(void) help_display_prefix(si, si->service);
(void) command_success_nodata(si, _("\2%s\2 provides games and tools for playing games to the network."), si->service->nick);
(void) help_display_newline(si); (void) command_help(si, si->service->commands); (void) help_display_moreinfo(si, si->service, NULL); (void) help_display_locations(si); (void) help_display_suffix(si);}
static struct command gs_help = { .name = "HELP", .desc = STR_HELP_DESCRIPTION, .access = AC_NONE, .maxparc = 2, .cmd = &gs_cmd_help, .help = { .path = "help" },};
static voidmod_init(struct module *const restrict m){ MODULE_TRY_REQUEST_DEPENDENCY(m, "gameserv/main")
(void) service_named_bind_command("gameserv", &gs_help);}
static voidmod_deinit(const enum module_unload_intent ATHEME_VATTR_UNUSED intent){ (void) service_named_unbind_command("gameserv", &gs_help);}
SIMPLE_DECLARE_MODULE_V1("gameserv/help", MODULE_UNLOAD_CAPABILITY_OK)