hs_list.c File Reference

#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)


Function Documentation

void AnopeFini ( void   ) 

Unload the module

Definition at line 46 of file hs_list.c.

int AnopeInit ( int  argc,
char **  argv 
)

Create the off command, and tell anope about it.

Parameters:
argc Argument count
argv Argument list
Returns:
MOD_CONT to allow the module, MOD_STOP to stop it

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.

Parameters:
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.

Parameters:
u The user who is requesting help


Generated on Sun Dec 30 09:26:55 2007 for Anope by  doxygen 1.5.1-20070107