summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAdam- <Adam-@5417fbe8-f217-4b02-8779-1006273d7864>2010-06-18 16:51:52 +0000
committerAdam <Adam@anope.org>2010-06-20 19:41:34 -0400
commit89412e46c25d740d7f8fefeabee3819c407ec523 (patch)
tree6582f6712b465cf83b6d58846cac4c143cf0ad91
parentdacdafef0ff33a89174c9b2c4ced19ab8105493f (diff)
Fixed bug #1171 - Fixed defcon so it works on Windows
git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@3010 5417fbe8-f217-4b02-8779-1006273d7864
-rw-r--r--src/config.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/config.c b/src/config.c
index 6216a6afc..1846edfe5 100644
--- a/src/config.c
+++ b/src/config.c
@@ -1701,9 +1701,10 @@ int read_config(int reload)
/**
* Check all DEFCON dependiencies...
**/
- if (Config.DefConLevel) {
+ if (Config.DefConLevel)
+ {
/* Build DefCon's */
- DefCon.reserve(6);
+ DefCon.resize(6);
DefCon[5].reset();
for (unsigned int level = 1; level < 5; ++level) {
DefCon[level] = 0;