Data Structures | Enumerations | Functions | Variables

os_defcon.cpp File Reference

#include "module.h"
#include "global.h"
#include "os_session.h"
Include dependency graph for os_defcon.cpp:

Go to the source code of this file.

Data Structures

struct  DefconConfig
class  DefConTimeout
class  CommandOSDefcon
class  OSDefcon

Enumerations

enum  DefconLevel {
  DEFCON_NO_NEW_CHANNELS, DEFCON_NO_NEW_NICKS, DEFCON_NO_MLOCK_CHANGE, DEFCON_FORCE_CHAN_MODES,
  DEFCON_REDUCE_SESSION, DEFCON_NO_NEW_CLIENTS, DEFCON_OPER_ONLY, DEFCON_SILENT_OPER_ONLY,
  DEFCON_AKILL_NEW_CLIENTS, DEFCON_NO_NEW_MEMOS
}

Functions

static void runDefCon ()
static Anope::string defconReverseModes (const Anope::string &modes)

Variables

bool DefConModesSet = false
static DefconConfig DConfig
static ServiceReference
< GlobalService
GlobalService ("GlobalService","Global")
static Timertimeout

Enumeration Type Documentation

Enumerator:
DEFCON_NO_NEW_CHANNELS 
DEFCON_NO_NEW_NICKS 
DEFCON_NO_MLOCK_CHANGE 
DEFCON_FORCE_CHAN_MODES 
DEFCON_REDUCE_SESSION 
DEFCON_NO_NEW_CLIENTS 
DEFCON_OPER_ONLY 
DEFCON_SILENT_OPER_ONLY 
DEFCON_AKILL_NEW_CLIENTS 
DEFCON_NO_NEW_MEMOS 

Definition at line 18 of file os_defcon.cpp.


Function Documentation

static Anope::string defconReverseModes ( const Anope::string modes  )  [static]

Definition at line 596 of file os_defcon.cpp.

References Anope::string::empty(), and Anope::string::length().

Referenced by runDefCon().

static void runDefCon (  )  [static]

Variable Documentation

Definition at line 98 of file os_defcon.cpp.

bool DefConModesSet = false

Definition at line 32 of file os_defcon.cpp.

Referenced by runDefCon().

ServiceReference<GlobalService> GlobalService("GlobalService","Global") [static]
Timer* timeout [static]