summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorom <om@e03df62e-2008-0410-955e-edbf42e46eb7>2006-04-04 06:15:20 +0000
committerom <om@e03df62e-2008-0410-955e-edbf42e46eb7>2006-04-04 06:15:20 +0000
commitea1a5c17b5e79c0132da28a75fe42159deebf737 (patch)
tree6e256f5149f7fd626fb6342f0232b416c356f439
parent1796a63b82cb5ac263e3cb797cd84eaac8959d1c (diff)
combine a couple of if()'s
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3819 e03df62e-2008-0410-955e-edbf42e46eb7
-rw-r--r--src/inspircd_io.cpp6
1 files changed, 3 insertions, 3 deletions
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 == '<')