From ea1a5c17b5e79c0132da28a75fe42159deebf737 Mon Sep 17 00:00:00 2001 From: om Date: Tue, 4 Apr 2006 06:15:20 +0000 Subject: combine a couple of if()'s git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3819 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/inspircd_io.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src') diff --git a/src/inspircd_io.cpp b/src/inspircd_io.cpp index 0ae36d292..edb9702ab 100644 --- a/src/inspircd_io.cpp +++ b/src/inspircd_io.cpp @@ -1042,7 +1042,10 @@ bool ServerConfig::LoadConf(ConfigDataHash &target, const char* filename, std::o */ if((ch == '#') && !in_quote) + { in_comment = true; + continue; + } switch(ch) { @@ -1056,9 +1059,6 @@ bool ServerConfig::LoadConf(ConfigDataHash &target, const char* filename, std::o ch = ' '; } - if(in_comment) - continue; - line += ch; if(ch == '<') -- cgit v1.2.3