summaryrefslogtreecommitdiff
path: root/include/services.h
diff options
context:
space:
mode:
authorAdam- <Adam-@5417fbe8-f217-4b02-8779-1006273d7864>2009-10-30 01:04:13 +0000
committerAdam- <Adam-@5417fbe8-f217-4b02-8779-1006273d7864>2009-10-30 01:04:13 +0000
commit6a9fa9f4d2ead592eb51a014491ce3aaee2029e8 (patch)
tree454479f2c8ef69a52e461416be42fd94d8b15955 /include/services.h
parent5fc268b7509f20cbf1243b99f2669033b93db00e (diff)
Rewrote all of the defcon code, and moved most of it to os_defcon. This fixes defcon to have the ability to use modes introduced to Anope at a later time than on startup (eg, from the IRCd), amongst other things
git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@2597 5417fbe8-f217-4b02-8779-1006273d7864
Diffstat (limited to 'include/services.h')
-rw-r--r--include/services.h29
1 files changed, 16 insertions, 13 deletions
diff --git a/include/services.h b/include/services.h
index 3acbd6ebd..d733aff55 100644
--- a/include/services.h
+++ b/include/services.h
@@ -1426,19 +1426,22 @@ struct session_ {
};
/*************************************************************************/
-/**
- * DEFCON Defines
- **/
-#define DEFCON_NO_NEW_CHANNELS 1 /* No New Channel Registrations */
-#define DEFCON_NO_NEW_NICKS 2 /* No New Nick Registrations */
-#define DEFCON_NO_MLOCK_CHANGE 4 /* No MLOCK changes */
-#define DEFCON_FORCE_CHAN_MODES 8 /* Force Chan Mode */
-#define DEFCON_REDUCE_SESSION 16 /* Reduce Session Limit */
-#define DEFCON_NO_NEW_CLIENTS 32 /* Kill any NEW clients */
-#define DEFCON_OPER_ONLY 64 /* Restrict services to oper's only */
-#define DEFCON_SILENT_OPER_ONLY 128 /* Silently ignore non-opers */
-#define DEFCON_AKILL_NEW_CLIENTS 256 /* AKILL any new clients */
-#define DEFCON_NO_NEW_MEMOS 512 /* No New Memos Sent */
+
+/* Defcon */
+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
+
+};
/*************************************************************************/