summaryrefslogtreecommitdiff
path: root/src
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 /src
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
Diffstat (limited to 'src')
-rw-r--r--src/init.c11
1 files changed, 4 insertions, 7 deletions
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