#include "module.h"
Go to the source code of this file.
Functions | |
| void | AnopeFini (void) |
| int | AnopeInit (int argc, char **argv) |
| int | listOut (User *u) |
| void | myHostServHelp (User *u) |
| int AnopeInit | ( | int | argc, | |
| char ** | argv | |||
| ) |
Create the off command, and tell anope about it.
| argc | Argument count | |
| argv | Argument list |
Definition at line 27 of file hs_list.c.
References CORE, createCommand(), HOSTSERV, is_services_oper(), listOut(), MOD_CONT, MOD_UNIQUE, moduleAddAuthor(), moduleAddCommand(), moduleAddVersion(), moduleSetHostHelp(), moduleSetType(), and myHostServHelp().
| int listOut | ( | User * | u | ) |
The /hs list command.
| u | The user who issued the command | |
| MOD_CONT | to continue processing other modules, MOD_STOP to stop processing. |
Do a check for a range here, then in the next loop we'll only display what has been requested..
List the host if its in the display range, and not more than NSListMax records have been displayed...
Definition at line 69 of file hs_list.c.
References BUFSIZE, hostcore_::creator, head, hostCoreListHead(), match_wild_nocase(), MOD_CONT, myStrGetOnlyToken(), myStrGetTokenRemainder(), hostcore_::next, hostcore_::nick, notice_lang(), NSListMax, s_ChanServ, s_HostServ, strftime_lang(), hostcore_::time, hostcore_::vHost, and hostcore_::vIdent.
Referenced by AnopeInit().
| void myHostServHelp | ( | User * | u | ) |
Add the help response to anopes /hs help output.
| u | The user who is requesting help |
1.5.1-20070107