Anope IRC Services  Version 2.0
Data Structures | Enumerations | Functions | Variables
os_defcon.cpp File Reference
#include "module.h"
#include "modules/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 15 of file os_defcon.cpp.

Function Documentation

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

Definition at line 583 of file os_defcon.cpp.

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

Referenced by runDefCon().

static void runDefCon ( )
static

Variable Documentation

DefconConfig DConfig
static

Definition at line 99 of file os_defcon.cpp.

bool DefConModesSet = false

Definition at line 29 of file os_defcon.cpp.

Referenced by runDefCon().

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