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

Go to the source code of this file.

Functions

static void myChanServHelp (User *u)
 
static int do_util (User *u, CSModeUtil *util)
 
static int do_op (User *u)
 
static int do_deop (User *u)
 
static int do_voice (User *u)
 
static int do_devoice (User *u)
 
static int do_halfop (User *u)
 
static int do_dehalfop (User *u)
 
static int do_protect (User *u)
 
static int do_deprotect (User *u)
 
static int do_owner (User *u)
 
static 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 81 of file cs_modes.c.

int AnopeInit ( int  argc,
char **  argv 
)

Create the 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 36 of file cs_modes.c.

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

static int do_dehalfop ( User u)
static

Definition at line 159 of file cs_modes.c.

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

Referenced by AnopeInit().

static int do_deop ( User u)
static

Definition at line 127 of file cs_modes.c.

References csmodeutils, do_util(), and MUT_DEOP.

Referenced by AnopeInit().

static int do_deowner ( User u)
static
static int do_deprotect ( User u)
static

Definition at line 181 of file cs_modes.c.

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

Referenced by AnopeInit().

static int do_devoice ( User u)
static

Definition at line 141 of file cs_modes.c.

References csmodeutils, do_util(), and MUT_DEVOICE.

Referenced by AnopeInit().

static int do_halfop ( User u)
static

Definition at line 148 of file cs_modes.c.

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

Referenced by AnopeInit().

static int do_op ( User u)
static

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

Parameters
uThe user who issued the command
MOD_CONTto continue processing other modules, MOD_STOP to stop processing.

Definition at line 120 of file cs_modes.c.

References csmodeutils, do_util(), and MUT_OP.

Referenced by AnopeInit().

static int do_owner ( User u)
static
static int do_protect ( User u)
static

Definition at line 170 of file cs_modes.c.

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

Referenced by AnopeInit().

static int do_util ( User u,
CSModeUtil util 
)
static
static int do_voice ( User u)
static

Definition at line 134 of file cs_modes.c.

References csmodeutils, do_util(), and MUT_VOICE.

Referenced by AnopeInit().

static void myChanServHelp ( User u)
static

Add the help response to anopes /cs help output.

Parameters
uThe user who is requesting help

Definition at line 90 of file cs_modes.c.

References ircdvars_::admin, ircdvars_::halfop, ircd, notice_lang(), ircdvars_::owner, ircdvars_::protect, and s_ChanServ.

Referenced by AnopeInit().