summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordrstein drstein@31f1291d-b8d6-0310-a050-a5561fc1590b <drstein drstein@31f1291d-b8d6-0310-a050-a5561fc1590b@5417fbe8-f217-4b02-8779-1006273d7864>2008-02-12 15:30:38 +0000
committerdrstein drstein@31f1291d-b8d6-0310-a050-a5561fc1590b <drstein drstein@31f1291d-b8d6-0310-a050-a5561fc1590b@5417fbe8-f217-4b02-8779-1006273d7864>2008-02-12 15:30:38 +0000
commit62de724353408bcf0c6aa889f4f03615c466b60e (patch)
tree2a8fc56267f8b14a18567db15227fbb8bf6a73cc
parent46c09b5da9b35616d8944f450f7700e7b9a4cde3 (diff)
BUILD : 1.7.21 (1386) BUGS : 867 NOTES : Removed extra loop when parsing defcon modes.
git-svn-id: svn://svn.anope.org/anope/trunk@1386 31f1291d-b8d6-0310-a050-a5561fc1590b git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@1101 5417fbe8-f217-4b02-8779-1006273d7864
-rw-r--r--Changes1
-rw-r--r--src/init.c11
-rw-r--r--version.log6
3 files changed, 10 insertions, 8 deletions
diff --git a/Changes b/Changes
index 1176f6aab..a6dca3983 100644
--- a/Changes
+++ b/Changes
@@ -37,6 +37,7 @@ Anope Version S V N
02/11 F Fixed memory leak in cs_akick(). [#870]
02/11 F Added missed debug message when HostServ is disabled. [#863]
02/12 F rdb_close() where rdb_open() is used in rdb_dbase() functions. [#862]
+02/12 F Removed extra loop when parsing defcon modes. [#867]
Provided by Trystan <trystan@nomadirc.net> - 2008
02/11 F Last part of memory leak in cs_akick() [#870]
diff --git a/src/init.c b/src/init.c
index a57ff0dd0..e1e005aa6 100644
--- a/src/init.c
+++ b/src/init.c
@@ -483,13 +483,10 @@ int init_secondary(int ac, char **av)
/* Parse the defcon mode string if needed */
if (DefConLevel) {
- int defconCount;
- for (defconCount = 1; defconCount <= 5; defconCount++) {
- if (!defconParseModeString(DefConChanModes)) {
- fprintf(stderr,
- "services.conf: The given DefConChanModes mode string was incorrect (see log for exact errors)\n");
- return -1;
- }
+ if (!defconParseModeString(DefConChanModes)) {
+ fprintf(stderr,
+ "services.conf: The given DefConChanModes mode string was incorrect (see log for exact errors)\n");
+ return -1;
}
}
#ifndef _WIN32
diff --git a/version.log b/version.log
index c6b11ff43..f7ff72ce2 100644
--- a/version.log
+++ b/version.log
@@ -9,10 +9,14 @@ VERSION_MAJOR="1"
VERSION_MINOR="7"
VERSION_PATCH="21"
VERSION_EXTRA="-svn"
-VERSION_BUILD="1385"
+VERSION_BUILD="1386"
# $Log$
#
+# BUILD : 1.7.21 (1386)
+# BUGS : 867
+# NOTES : Removed extra loop when parsing defcon modes.
+#
# BUILD : 1.7.21 (1385)
# BUGS : 862
# NOTES : rdb_close() where rdb_open() is used in rdb_dbase() functions.