#include "modules.h"

Go to the source code of this file.
Functions | |
| MDE Command * | lookup_cmd (Command *list, char *name) |
| void | run_cmd (char *service, User *u, Command *list, char *name) |
| void | help_cmd (char *service, User *u, Command *list, char *name) |
| void | do_run_cmd (char *service, User *u, Command *c, const char *cmd) |
| MDE void | do_help_limited (char *service, User *u, Command *c) |
| void | do_help_cmd (char *service, User *u, Command *c, const char *cmd) |
| MDE void | mod_help_cmd (char *service, User *u, CommandHash *cmdTable[], const char *cmd) |
| MDE void | mod_run_cmd (char *service, User *u, CommandHash *cmdTable[], const char *cmd) |
Print a help message for the given command.
| services | Services Client | |
| u | User Struct | |
| c | Command Struct | |
| cmd | Command |
Definition at line 163 of file commands.c.
References Command_::admin_help, Command_::all_help, current, do_help_limited(), findModule(), Command_::help_param1, Command_::help_param2, Command_::help_param3, Command_::help_param4, Command_::helpmsg_admin, Command_::helpmsg_all, Command_::helpmsg_oper, Command_::helpmsg_reg, Command_::helpmsg_root, is_services_admin(), is_services_oper(), is_services_root(), MOD_CONT, mod_current_module, mod_current_module_name, Command_::mod_name, Command_::next, notice_help(), notice_lang(), Command_::oper_help, Command_::regular_help, and Command_::root_help.
Referenced by help_cmd(), and mod_help_cmd().
Output the 'Limited to' line for the given command
| service | Services Client | |
| u | User Struct | |
| c | Command Struct |
Definition at line 137 of file commands.c.
References Command_::has_priv, is_host_remover(), is_host_setter(), is_oper(), is_services_admin(), is_services_oper(), is_services_root(), and notice_lang().
Referenced by do_help_cmd(), and myHelpResonse().
Run the given command
| services | Services Client | |
| u | User Struct | |
| c | Command Struct | |
| cmd | Command |
Definition at line 85 of file commands.c.
References alog(), checkDefCon(), current, DEFCON_OPER_ONLY, DEFCON_SILENT_OPER_ONLY, findModule(), Command_::has_priv, is_oper(), MOD_CONT, mod_current_module, mod_current_module_name, Command_::mod_name, Command_::next, user_::nick, notice_lang(), and Command_::routine.
Referenced by mod_run_cmd(), and run_cmd().
Find the Help Command
| services | Services Client | |
| u | User Struct | |
| c | Command Struct | |
| cmd | Command |
Definition at line 250 of file commands.c.
References c, do_help_cmd(), and lookup_cmd().
Return the Command corresponding to the given name, or NULL if no such command exists.
| list | Command struct | |
| cmd | Command to look up |
Definition at line 27 of file commands.c.
References c, Command_::name, and stricmp().
Referenced by help_cmd(), and run_cmd().
| MDE void mod_help_cmd | ( | char * | service, | |
| User * | u, | |||
| CommandHash * | cmdTable[], | |||
| const char * | cmd | |||
| ) |
Find the Help Command
| services | Services Client | |
| u | User Struct | |
| Command | Hash Table | |
| cmd | Command |
Definition at line 266 of file commands.c.
References c, do_help_cmd(), and findCommand().
Referenced by do_help().
| MDE void mod_run_cmd | ( | char * | service, | |
| User * | u, | |||
| CommandHash * | cmdTable[], | |||
| const char * | cmd | |||
| ) |
Run the routine for the given command, if it exists and the user has privilege to do so; if not, print an appropriate error message.
| services | Services Client | |
| u | User Struct | |
| Command | Hash Table | |
| cmd | Command |
Definition at line 67 of file commands.c.
References c, do_run_cmd(), and findCommand().
Referenced by botserv(), catserv(), chanserv(), helpserv(), hostserv(), memoserv(), nickserv(), and operserv().
Run the routine for the given command, if it exists and the user has privilege to do so; if not, print an appropriate error message.
| services | Services Client | |
| u | User Struct | |
| list | Command struct | |
| cmd | Command |
Definition at line 50 of file commands.c.
References c, do_run_cmd(), and lookup_cmd().
1.7.1