cs_modes.c File Reference

#include "module.h"

Include dependency graph for cs_modes.c:

Go to the source code of this file.

Functions

void myChanServHelp (User *u)
int do_util (User *u, CSModeUtil *util)
int do_op (User *u)
int do_deop (User *u)
int do_voice (User *u)
int do_devoice (User *u)
int do_halfop (User *u)
int do_dehalfop (User *u)
int do_protect (User *u)
int do_deprotect (User *u)
int do_owner (User *u)
int do_deowner (User *u)
int AnopeInit (int argc, char **argv)
void AnopeFini (void)


Function Documentation

void AnopeFini ( void   ) 

Unload the module

Definition at line 97 of file cs_modes.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 37 of file cs_modes.c.

References ircdvars_::admin, c, CHANSERV, CORE, createCommand(), do_dehalfop(), do_deop(), do_deowner(), do_deprotect(), do_devoice(), do_halfop(), do_op(), do_owner(), do_protect(), do_voice(), ircdvars_::halfop, ircd, MOD_CONT, MOD_UNIQUE, moduleAddAuthor(), moduleAddCommand(), moduleAddVersion(), moduleSetChanHelp(), moduleSetType(), myChanServHelp(), ircdvars_::owner, and ircdvars_::protect.

int do_dehalfop ( User u  ) 

Definition at line 175 of file cs_modes.c.

References csmodeutils, do_util(), ircdvars_::halfop, ircd, MOD_CONT, and MUT_DEHALFOP.

Referenced by AnopeInit().

int do_deop ( User u  ) 

Definition at line 143 of file cs_modes.c.

References csmodeutils, do_util(), and MUT_DEOP.

Referenced by AnopeInit().

int do_deowner ( User u  ) 

int do_deprotect ( User u  ) 

Definition at line 197 of file cs_modes.c.

References ircdvars_::admin, csmodeutils, do_util(), ircd, MOD_CONT, MUT_DEPROTECT, and ircdvars_::protect.

Referenced by AnopeInit().

int do_devoice ( User u  ) 

Definition at line 157 of file cs_modes.c.

References csmodeutils, do_util(), and MUT_DEVOICE.

Referenced by AnopeInit().

int do_halfop ( User u  ) 

Definition at line 164 of file cs_modes.c.

References csmodeutils, do_util(), ircdvars_::halfop, ircd, MOD_CONT, and MUT_HALFOP.

Referenced by AnopeInit().

int do_op ( User u  ) 

The /cs op/deop/voice/devoice etc.. commands.

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

Definition at line 136 of file cs_modes.c.

References csmodeutils, do_util(), and MUT_OP.

Referenced by AnopeInit().

int do_owner ( User u  ) 

int do_protect ( User u  ) 

Definition at line 186 of file cs_modes.c.

References ircdvars_::admin, csmodeutils, do_util(), ircd, MOD_CONT, MUT_PROTECT, and ircdvars_::protect.

Referenced by AnopeInit().

int do_util ( User u,
CSModeUtil util 
)

int do_voice ( User u  ) 

Definition at line 150 of file cs_modes.c.

References csmodeutils, do_util(), and MUT_VOICE.

Referenced by AnopeInit().

void myChanServHelp ( User u  ) 

Add the help response to anopes /cs help output.

Parameters:
u The user who is requesting help


Generated on Sun Oct 5 09:07:02 2008 for Anope by  doxygen 1.5.7.1