2003-05-26 09:18:31 +00:00
|
|
|
/* NeoStats - IRC Statistical Services
|
2004-01-14 11:36:37 +00:00
|
|
|
** Copyright (c) 1999-2004 Adam Rutter, Justin Hammond
|
2002-09-04 08:40:29 +00:00
|
|
|
** http://www.neostats.net/
|
|
|
|
**
|
|
|
|
** Portions Copyright (c) 2000-2001 ^Enigma^
|
|
|
|
**
|
|
|
|
** Portions Copyright (c) 1999 Johnathan George net@lite.net
|
|
|
|
**
|
|
|
|
** This program is free software; you can redistribute it and/or modify
|
|
|
|
** it under the terms of the GNU General Public License as published by
|
|
|
|
** the Free Software Foundation; either version 2 of the License, or
|
|
|
|
** (at your option) any later version.
|
|
|
|
**
|
|
|
|
** This program is distributed in the hope that it will be useful,
|
|
|
|
** but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
** GNU General Public License for more details.
|
|
|
|
**
|
|
|
|
** You should have received a copy of the GNU General Public License
|
|
|
|
** along with this program; if not, write to the Free Software
|
|
|
|
** Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
|
|
|
|
** USA
|
|
|
|
**
|
|
|
|
** NeoStats CVS Identification
|
2003-09-22 15:04:15 +00:00
|
|
|
** $Id$
|
2000-02-03 23:45:51 +00:00
|
|
|
*/
|
|
|
|
|
|
|
|
#include "stats.h"
|
|
|
|
|
2003-11-27 22:49:10 +00:00
|
|
|
const char ns_help_oneline[]="Provides Help on Commands";
|
|
|
|
const char ns_help_level_oneline[]="Show permission level for NeoStats.";
|
2003-12-12 20:38:45 +00:00
|
|
|
const char ns_help_status_oneline[]="Stats info on NeoStats.";
|
2003-11-27 22:49:10 +00:00
|
|
|
const char ns_help_version_oneline[]="Show NeoStats version information.";
|
|
|
|
const char ns_help_shutdown_oneline[]="Shutdown NeoStats";
|
|
|
|
const char ns_help_reload_oneline[]="Force NeoStats to reload";
|
|
|
|
const char ns_help_logs_oneline[]="View logfiles";
|
|
|
|
const char ns_help_load_oneline[]="Load a module";
|
|
|
|
const char ns_help_unload_oneline[]="Unload a module";
|
|
|
|
const char ns_help_jupe_oneline[]="Jupiter a Server";
|
2004-01-26 11:33:52 +00:00
|
|
|
const char ns_help_exclude_oneline[]="Maintain Global Exclusion lists";
|
2003-09-29 12:46:22 +00:00
|
|
|
#ifdef USE_RAW
|
2003-11-27 22:49:10 +00:00
|
|
|
const char ns_help_raw_oneline[]="Send a raw command from this Server";
|
2003-09-29 12:46:22 +00:00
|
|
|
#endif
|
2003-11-27 22:49:10 +00:00
|
|
|
const char ns_help_debug_oneline[]="Toggles debug mode";
|
|
|
|
const char ns_help_botlist_oneline[]="List current module bots";
|
|
|
|
const char ns_help_socklist_oneline[]="List current module sockets";
|
|
|
|
const char ns_help_timerlist_oneline[]="List current module timers";
|
|
|
|
const char ns_help_botchanlist_oneline[]="List current module bot channels";
|
|
|
|
const char ns_help_modlist_oneline[]="List loaded modules";
|
|
|
|
const char ns_help_userdump_oneline[]="Debug user table";
|
|
|
|
const char ns_help_chandump_oneline[]="Debug channel table";
|
|
|
|
const char ns_help_serverdump_oneline[]="Debug server table";
|
2004-05-28 09:38:31 +00:00
|
|
|
const char ns_help_bandump_oneline[]="Debug Ban table";
|
2003-11-27 22:49:10 +00:00
|
|
|
|
|
|
|
const char *ns_help_level[] = {
|
2003-11-20 22:45:59 +00:00
|
|
|
"Syntax: \2LEVEL [nick]\2",
|
2003-06-13 13:11:50 +00:00
|
|
|
"",
|
2003-10-06 16:33:42 +00:00
|
|
|
"Show your permission level for NeoStats.",
|
|
|
|
"This may range from 0 (lowest) to 200 (highest).",
|
2003-11-20 22:45:59 +00:00
|
|
|
"Optional nick parameter allows you to see the level",
|
|
|
|
"for another user",
|
2003-06-13 13:11:50 +00:00
|
|
|
NULL
|
2002-03-18 05:46:15 +00:00
|
|
|
};
|
|
|
|
|
2003-11-27 22:49:10 +00:00
|
|
|
const char *ns_help_jupe[] = {
|
2003-10-06 16:33:42 +00:00
|
|
|
"Syntax: \2JUPE \37Server\37\2",
|
2003-06-13 13:11:50 +00:00
|
|
|
"",
|
2003-10-06 16:33:42 +00:00
|
|
|
"Cause NeoStats to jupiter a server; i.e. create a fake",
|
|
|
|
"\"server\" connected to the NeoStats host which prevents",
|
|
|
|
"any real server of that name from connecting.",
|
|
|
|
"To remove the jupe use the IRCD \2/SQUIT\2 command.",
|
2003-06-13 13:11:50 +00:00
|
|
|
NULL
|
2002-03-28 05:29:36 +00:00
|
|
|
};
|
2002-03-18 05:46:15 +00:00
|
|
|
|
2004-01-26 11:33:52 +00:00
|
|
|
const char *ns_help_exclude[] = {
|
|
|
|
"Syntax: \2EXCLUDE \37<ADD> <HOST/SERVER/CHAN> <pattern>\37\2",
|
|
|
|
" \2EXCLUDE \37<DEL> <position>\37\2",
|
|
|
|
" \2EXCLUDE \37<LIST>\37\2",
|
|
|
|
"",
|
|
|
|
"This command is to maintain the global exclusion lists, which the NeoStats",
|
|
|
|
"modules can take advantage of, and means you only have to maintain",
|
|
|
|
"one exclusion list, rather than many exclusion lists",
|
|
|
|
"The Syntax is:",
|
|
|
|
"\2EXCLUDE ADD <HOST/SERVER/CHAN> <pattern>\2",
|
|
|
|
"Add a new exclusion to the list, matching either a hostname of a client",
|
|
|
|
"or a servername, or a channel name",
|
|
|
|
"\2EXCLUDE DEL <position>\2",
|
|
|
|
"Delete a entry from the exclusion list.",
|
|
|
|
"Deleting a entry will only take effect for newly connected clients or created channels",
|
|
|
|
"\2EXCLUDE LIST\2",
|
|
|
|
"List the current Exclusions that are active",
|
|
|
|
"",
|
|
|
|
"\2Please Note:\2",
|
|
|
|
"Not all modules may take advantage of the global exclusion lists. Currently, all core",
|
|
|
|
"modules do, but you should consult the documentation of any 3rd party module you use",
|
|
|
|
"to see if it supports the global exlusions",
|
|
|
|
NULL
|
|
|
|
};
|
|
|
|
|
2003-09-29 12:46:22 +00:00
|
|
|
#ifdef USE_RAW
|
2003-11-27 22:49:10 +00:00
|
|
|
const char *ns_help_raw[] = {
|
2003-10-06 16:33:42 +00:00
|
|
|
"Syntax: \2RAW \37Command\37\2",
|
2003-06-13 13:11:50 +00:00
|
|
|
"",
|
2003-10-06 16:33:42 +00:00
|
|
|
"Sends a string of raw text directly to the server to which",
|
|
|
|
"NeoStats is connected. Nothing is returned to the user",
|
|
|
|
"after a raw command.",
|
|
|
|
"Raw can cause a number of problems on the network and is",
|
|
|
|
"used at your own risk. No support of any kind is provided",
|
|
|
|
"for this command.",
|
2003-06-13 13:11:50 +00:00
|
|
|
NULL
|
2000-02-03 23:45:51 +00:00
|
|
|
};
|
2003-09-29 12:46:22 +00:00
|
|
|
#endif
|
2000-02-03 23:45:51 +00:00
|
|
|
|
2003-11-27 22:49:10 +00:00
|
|
|
const char *ns_help_load[] = {
|
2003-10-06 16:33:42 +00:00
|
|
|
"Syntax: \2LOAD \37module file name\37\2",
|
2003-06-13 13:11:50 +00:00
|
|
|
"",
|
2003-10-06 16:33:42 +00:00
|
|
|
"Load a module while NeoStats is running. Some modules",
|
|
|
|
"cannot be loaded at runtime, and will return an error.",
|
2003-06-13 13:11:50 +00:00
|
|
|
NULL
|
2000-02-03 23:45:51 +00:00
|
|
|
};
|
|
|
|
|
2003-11-27 22:49:10 +00:00
|
|
|
const char *ns_help_unload[] = {
|
2003-10-06 16:33:42 +00:00
|
|
|
"Syntax: \2UNLOAD \37module name\37\2",
|
2003-06-13 13:11:50 +00:00
|
|
|
"",
|
2003-10-06 16:33:42 +00:00
|
|
|
"Unload a module while NeoStats is running. Some modules",
|
|
|
|
"cannot be unloaded at runtime, and will return an error.",
|
2003-06-13 13:11:50 +00:00
|
|
|
NULL
|
2000-02-03 23:45:51 +00:00
|
|
|
};
|
|
|
|
|
2003-11-27 22:49:10 +00:00
|
|
|
const char *ns_help_modlist[] = {
|
2003-10-06 16:33:42 +00:00
|
|
|
"Syntax: \2MODLIST\2",
|
2003-06-13 13:11:50 +00:00
|
|
|
"",
|
2003-10-06 16:33:42 +00:00
|
|
|
"Display module names and descriptions of all loaded",
|
|
|
|
"modules.",
|
2003-06-13 13:11:50 +00:00
|
|
|
NULL
|
2000-02-03 23:45:51 +00:00
|
|
|
};
|
|
|
|
|
2003-11-27 22:49:10 +00:00
|
|
|
const char *ns_help_debug[] = {
|
2003-11-18 11:51:09 +00:00
|
|
|
"Syntax: \2DEBUG <ON|OFF>\2",
|
2003-06-13 13:11:50 +00:00
|
|
|
"",
|
2003-10-06 16:33:42 +00:00
|
|
|
"Toggles debug mode. When enabled, debugging information is",
|
|
|
|
"sent to the services channel.",
|
2003-09-30 14:24:31 +00:00
|
|
|
"",
|
2003-10-06 16:33:42 +00:00
|
|
|
"Beware, on a large network, this command will generate a",
|
|
|
|
"large amount of information.",
|
2003-06-13 13:11:50 +00:00
|
|
|
NULL
|
2000-02-03 23:45:51 +00:00
|
|
|
};
|
|
|
|
|
2003-11-27 22:49:10 +00:00
|
|
|
const char *ns_help_version[] = {
|
2003-10-06 16:33:42 +00:00
|
|
|
"Syntax: \2VERSION\2",
|
2003-06-13 13:11:50 +00:00
|
|
|
"",
|
2003-10-06 16:33:42 +00:00
|
|
|
"Shows the current NeoStats version.",
|
2003-06-13 13:11:50 +00:00
|
|
|
NULL
|
2000-02-03 23:45:51 +00:00
|
|
|
};
|
|
|
|
|
2003-11-27 22:49:10 +00:00
|
|
|
const char *ns_help_shutdown[] = {
|
2003-10-06 16:33:42 +00:00
|
|
|
"Syntax: \2SHUTDOWN <reason>\2",
|
2003-06-13 13:11:50 +00:00
|
|
|
"",
|
2003-10-06 16:33:42 +00:00
|
|
|
"Cause NeoStats to save data files and exit immediately.",
|
|
|
|
"The reason provided will be broadcast to the services",
|
|
|
|
"channel and other operators on the network.",
|
2003-06-13 13:11:50 +00:00
|
|
|
"This command should be used wisely.",
|
|
|
|
NULL
|
2000-02-03 23:45:51 +00:00
|
|
|
};
|
|
|
|
|
2003-11-27 22:49:10 +00:00
|
|
|
const char *ns_help_reload[] = {
|
2003-10-06 16:33:42 +00:00
|
|
|
"Syntax: \2RELOAD <reason>\2",
|
2003-06-13 13:11:50 +00:00
|
|
|
"",
|
2003-10-06 16:33:42 +00:00
|
|
|
"Cause NeoStats to leave the network, reload datafiles,",
|
|
|
|
"then reconnect to the network.",
|
|
|
|
"The reason provided will be broadcast to the services",
|
|
|
|
"channel and other operators on the network.",
|
2003-06-13 13:11:50 +00:00
|
|
|
"This command SHOULD be used wisely.",
|
|
|
|
NULL
|
2000-02-03 23:45:51 +00:00
|
|
|
};
|
|
|
|
|
2003-11-27 22:49:10 +00:00
|
|
|
const char *ns_help_userdump[] = {
|
2003-10-06 16:33:42 +00:00
|
|
|
"Syntax: \2USERDUMP\2",
|
|
|
|
"Syntax: \2USERDUMP <nick>\2",
|
2003-06-13 13:11:50 +00:00
|
|
|
"",
|
2003-10-06 16:33:42 +00:00
|
|
|
"When in debug mode, Neostats will echo its user table to",
|
|
|
|
"the services channel. Only useful for debugging Neostats",
|
|
|
|
"If nick is passed, only the information of that nick is",
|
|
|
|
"returned, otherwise the entire user list is dumped.",
|
2003-06-13 13:11:50 +00:00
|
|
|
NULL
|
2000-02-03 23:45:51 +00:00
|
|
|
};
|
|
|
|
|
2003-11-27 22:49:10 +00:00
|
|
|
const char *ns_help_serverdump[] = {
|
2003-10-06 16:33:42 +00:00
|
|
|
"Syntax: \2SERVERDUMP\2",
|
2004-02-15 17:34:07 +00:00
|
|
|
"Syntax: \2SERVERDUMP <name>\2",
|
2003-06-13 13:11:50 +00:00
|
|
|
"",
|
2003-10-06 16:33:42 +00:00
|
|
|
"When in debug mode, Neostats will echo its server table to",
|
|
|
|
"the services channel. Only useful for debugging Neostats",
|
2004-02-15 17:34:07 +00:00
|
|
|
"If name is passed, only the information for that server is",
|
|
|
|
"returned, otherwise the entire server list is dumped.",
|
2003-06-13 13:11:50 +00:00
|
|
|
NULL
|
2000-02-03 23:45:51 +00:00
|
|
|
};
|
|
|
|
|
2004-05-28 09:38:31 +00:00
|
|
|
const char *ns_help_bandump[] = {
|
|
|
|
"Syntax: \2BANDUMP\2",
|
|
|
|
"",
|
|
|
|
"When in debug mode, Neostats will echo its ban table to",
|
|
|
|
"the services channel. Only useful for debugging Neostats",
|
|
|
|
NULL
|
|
|
|
};
|
|
|
|
|
2003-11-27 22:49:10 +00:00
|
|
|
const char *ns_help_chandump[] = {
|
2003-11-18 11:51:09 +00:00
|
|
|
"Syntax: \2CHANDUMP\2",
|
2003-10-06 16:33:42 +00:00
|
|
|
"Syntax: \2CHANDUMP <channel>\2",
|
2003-06-13 13:11:50 +00:00
|
|
|
"",
|
2003-10-06 16:33:42 +00:00
|
|
|
"When in debug mode, Neostats will echo its channel table to",
|
|
|
|
"the services channel. Only useful for debugging Neostats",
|
|
|
|
"If channel is passed, only the information of that nick is",
|
|
|
|
"returned, otherwise the entire channel list is dumped.",
|
2003-06-13 13:11:50 +00:00
|
|
|
NULL
|
2000-02-03 23:45:51 +00:00
|
|
|
};
|
|
|
|
|
2003-11-27 22:49:10 +00:00
|
|
|
const char *ns_help_logs[] = {
|
2003-10-06 16:33:42 +00:00
|
|
|
"Syntax: \2LOGS\2",
|
2003-06-13 13:11:50 +00:00
|
|
|
"",
|
|
|
|
"Sends today's logfile via PRIVMSG/NOTICE",
|
2003-10-06 16:33:42 +00:00
|
|
|
NULL
|
|
|
|
};
|
|
|
|
|
2003-11-27 22:49:10 +00:00
|
|
|
const char *ns_help_botlist[] = {
|
2003-11-18 11:51:09 +00:00
|
|
|
"Syntax: \2BOTLIST\2",
|
2003-06-13 13:11:50 +00:00
|
|
|
"",
|
2003-10-06 16:33:42 +00:00
|
|
|
"NeoStats will send you by notice a list of the current bots",
|
|
|
|
"being used on the network for each module.",
|
2003-06-13 13:11:50 +00:00
|
|
|
NULL
|
2000-02-03 23:45:51 +00:00
|
|
|
};
|
|
|
|
|
2003-11-27 22:49:10 +00:00
|
|
|
const char *ns_help_socklist[] = {
|
2003-11-18 11:51:09 +00:00
|
|
|
"Syntax: \2SOCKLIST\2",
|
2003-10-06 16:33:42 +00:00
|
|
|
"",
|
|
|
|
"NeoStats will send you by notice a list of the current",
|
|
|
|
"sockets being used on the network for each module.",
|
|
|
|
NULL
|
|
|
|
};
|
|
|
|
|
2003-11-27 22:49:10 +00:00
|
|
|
const char *ns_help_timerlist[] = {
|
2003-11-18 11:51:09 +00:00
|
|
|
"Syntax: \2TIMERLIST\2",
|
2003-10-06 16:33:42 +00:00
|
|
|
"",
|
|
|
|
"NeoStats will send you by notice a list of the current",
|
|
|
|
"timer functions being used on the network by each module.",
|
|
|
|
NULL
|
|
|
|
};
|
|
|
|
|
2003-11-27 22:49:10 +00:00
|
|
|
const char *ns_help_botchanlist[] = {
|
2003-11-18 11:51:09 +00:00
|
|
|
"Syntax: \2BOTCHANLIST\2",
|
2003-10-06 16:33:42 +00:00
|
|
|
"",
|
|
|
|
"NeoStats will send you by notice a list of the current bots",
|
|
|
|
"and the channels they are using for each module.",
|
|
|
|
NULL
|
|
|
|
};
|
|
|
|
|
2003-12-12 20:38:45 +00:00
|
|
|
const char *ns_help_status[] = {
|
|
|
|
"Syntax: \2STATUS\2",
|
2003-10-06 16:33:42 +00:00
|
|
|
"",
|
|
|
|
"Display info about NeoStats uptime and other stats.",
|
|
|
|
NULL
|
|
|
|
};
|
2004-02-17 23:12:28 +00:00
|
|
|
|
|
|
|
const char *ns_help_set_nick[] = {
|
2004-02-21 06:21:08 +00:00
|
|
|
"\2NICK <newnick>\2 Change bot nickname",
|
2004-02-17 23:12:28 +00:00
|
|
|
"(requires restart to take effect).",
|
|
|
|
NULL
|
|
|
|
};
|
|
|
|
|
|
|
|
const char *ns_help_set_user[] = {
|
2004-02-21 06:21:08 +00:00
|
|
|
"\2USER <username>\2 Change bot username",
|
2004-02-17 23:12:28 +00:00
|
|
|
"(requires restart to take effect).",
|
|
|
|
NULL
|
|
|
|
};
|
|
|
|
|
|
|
|
const char *ns_help_set_host[] = {
|
2004-02-21 06:21:08 +00:00
|
|
|
"\2HOST <host>\2 Change bot host",
|
2004-02-17 23:12:28 +00:00
|
|
|
"(requires restart to take effect).",
|
|
|
|
NULL
|
|
|
|
};
|
|
|
|
|
|
|
|
const char *ns_help_set_realname[] = {
|
2004-02-21 06:21:08 +00:00
|
|
|
"\2REALNAME <realname>\2 Change bot realname",
|
2004-02-17 23:12:28 +00:00
|
|
|
"(requires restart to take effect).",
|
|
|
|
NULL
|
|
|
|
};
|
|
|
|
|
2004-02-21 06:21:08 +00:00
|
|
|
|