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

Go to the source code of this file.


static int do_defcon (User *u)
static void defcon_sendlvls (User *u)
static void myOperServHelp (User *u)
int AnopeInit (int argc, char **argv)
void AnopeFini (void)

Function Documentation

void AnopeFini ( void  )

Unload the module

Definition at line 52 of file os_defcon.c.

int AnopeInit ( int  argc,
char **  argv 

Create the command, and tell anope about it.

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

Definition at line 32 of file os_defcon.c.

References c, CORE, createCommand(), do_defcon(), is_services_admin(), MOD_CONT, MOD_UNIQUE, moduleAddAuthor(), moduleAddCommand(), moduleAddVersion(), moduleSetOperHelp(), moduleSetType(), myOperServHelp(), and OPERSERV.

static void defcon_sendlvls ( User u)
static int do_defcon ( User u)

Defcon - A method of impelemting various stages of securty, the hope is this will help serives protect a network during an attack, allowing admins to choose the precautions taken at each level.

/msg OperServ DefCon [level]

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

Definition at line 79 of file os_defcon.c.

References alog(), anope_cmd_global(), defcon_sendlvls(), DefConLevel, DefconMessage, DefConOffMessage, DefContimer, EVENT_DEFCON_LEVEL, getstring, getstring2, GlobalOnDefcon, GlobalOnDefconMore, MOD_CONT, user_::nick, notice_lang(), oper_global(), runDefCon(), s_OperServ, send_event(), and syntax_error().

Referenced by AnopeInit().

static void myOperServHelp ( User u)

Add the help response to anopes /os help output.

uThe user who is requesting help

Definition at line 62 of file os_defcon.c.

References is_services_admin(), notice_lang(), and s_OperServ.

Referenced by AnopeInit().