diff options
author | Adam- <Adam-@5417fbe8-f217-4b02-8779-1006273d7864> | 2009-10-30 01:04:13 +0000 |
---|---|---|
committer | Adam- <Adam-@5417fbe8-f217-4b02-8779-1006273d7864> | 2009-10-30 01:04:13 +0000 |
commit | 6a9fa9f4d2ead592eb51a014491ce3aaee2029e8 (patch) | |
tree | 454479f2c8ef69a52e461416be42fd94d8b15955 /include/extern.h | |
parent | 5fc268b7509f20cbf1243b99f2669033b93db00e (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/extern.h')
-rw-r--r-- | include/extern.h | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/include/extern.h b/include/extern.h index 30d515e5b..09055b491 100644 --- a/include/extern.h +++ b/include/extern.h @@ -389,9 +389,6 @@ E int NumUlines; E int read_config(int reload); E int DefConLevel; -E int DefCon[6]; -E int checkDefCon(int level); -E void resetDefCon(int level); E int DefConSessionLimit; E time_t DefConTimeOut; E time_t DefConAKILL; @@ -692,10 +689,13 @@ E int check_szline(const char *nick, char *ip); E Server *server_global(Server * s, char *msg); +E bool CheckDefCon(DefconLevel Level); +E bool CheckDefCon(int level, DefconLevel Level); +E void AddDefCon(int level, DefconLevel Level); +E void DelDefCon(int level, DefconLevel Level); +E std::vector<std::bitset<32> > DefCon; + E bool OSOpersOnly; -E time_t DefContimer; -E void runDefCon(); -E int defconParseModeString(const char *str); /**** process.c ****/ |