From 62de724353408bcf0c6aa889f4f03615c466b60e Mon Sep 17 00:00:00 2001 From: "drstein drstein@31f1291d-b8d6-0310-a050-a5561fc1590b" Date: Tue, 12 Feb 2008 15:30:38 +0000 Subject: 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 --- src/init.c | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) (limited to 'src') 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 -- cgit