os_admin.c File Reference

#include "module.h"

Go to the source code of this file.

Functions

int admin_list (int number, NickCore *nc, User *u, int *sent_header)
int admin_list_callback (SList *slist, int number, void *item, va_list args)
void AnopeFini (void)
int AnopeInit (int argc, char **argv)
int do_admin (User *u)
void myOperServHelp (User *u)


Function Documentation

int admin_list ( int  number,
NickCore nc,
User u,
int *  sent_header 
)

Definition at line 236 of file os_admin.c.

References nickcore_::display, notice_lang(), and s_OperServ.

Referenced by admin_list_callback(), and do_admin().

int admin_list_callback ( SList slist,
int  number,
void *  item,
va_list  args 
)

Definition at line 227 of file os_admin.c.

References admin_list().

Referenced by do_admin().

void AnopeFini ( void   ) 

Unload the module

Definition at line 51 of file os_admin.c.

int AnopeInit ( int  argc,
char **  argv 
)

Create the 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 30 of file os_admin.c.

References CORE, createCommand(), do_admin(), Command_::help_param1, MOD_CONT, MOD_UNIQUE, moduleAddAuthor(), moduleAddCommand(), moduleAddVersion(), moduleSetOperHelp(), moduleSetType(), myOperServHelp(), OPERSERV, and s_NickServ.

int do_admin ( User u  ) 

The /os admin command.

Parameters:
u The user who issued the command
MOD_CONT to continue processing other modules, MOD_STOP to stop processing.

Definition at line 72 of file os_admin.c.

References admin_list(), admin_list_callback(), slist_::count, findnick(), nickcore_::flags, is_services_root(), slist_::list, match_wild_nocase(), MOD_CONT, nickalias_::nc, NI_SERVICES_ADMIN, NI_SERVICES_OPER, notice_lang(), NS_VERBOTEN, readonly, s_OperServ, servadmins, servopers, skeleton, slist_add(), slist_clear(), slist_delete(), slist_delete_range(), slist_enum(), slist_indexof(), nickalias_::status, stricmp(), strspn(), and syntax_error().

Referenced by AnopeInit().

void myOperServHelp ( User u  ) 

Add the help response to anopes /os help output.

Parameters:
u The user who is requesting help

Definition at line 62 of file os_admin.c.

References notice_lang(), and s_OperServ.

Referenced by AnopeInit().


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