Anope IRC Services  Version 1.8
Functions
hs_list.c File Reference
#include "module.h"
Include dependency graph for hs_list.c:

Go to the source code of this file.

Functions

static int listOut (User *u)
 
static void myHostServHelp (User *u)
 
int AnopeInit (int argc, char **argv)
 
void AnopeFini (void)
 

Function Documentation

void AnopeFini ( void  )

Unload the module

Definition at line 45 of file hs_list.c.

int AnopeInit ( int  argc,
char **  argv 
)

Create the off command, and tell anope about it.

Parameters
argcArgument count
argvArgument list
Returns
MOD_CONT to allow the module, MOD_STOP to stop it

Definition at line 26 of file hs_list.c.

References c, CORE, createCommand(), HOSTSERV, is_services_oper(), listOut(), MOD_CONT, MOD_UNIQUE, moduleAddAuthor(), moduleAddCommand(), moduleAddVersion(), moduleSetHostHelp(), moduleSetType(), and myHostServHelp().

static int listOut ( User u)
static

The /hs list command.

Parameters
uThe user who issued the command
MOD_CONTto 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 68 of file hs_list.c.

References BUFSIZE, hostcore_::creator, current, 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().

static void myHostServHelp ( User u)
static

Add the help response to anopes /hs help output.

Parameters
uThe user who is requesting help

Definition at line 56 of file hs_list.c.

References is_services_oper(), notice_lang(), and s_HostServ.

Referenced by AnopeInit().