diff options
author | om <om@e03df62e-2008-0410-955e-edbf42e46eb7> | 2006-04-07 11:47:26 +0000 |
---|---|---|
committer | om <om@e03df62e-2008-0410-955e-edbf42e46eb7> | 2006-04-07 11:47:26 +0000 |
commit | d2afbfcf42cb4599f07baea345dcc97a99db3aba (patch) | |
tree | c6a6b2638d942c56c6327b180c6a05f273810101 | |
parent | a7b0c26a4c56440e4bc5ddc6d3ecfeb36089dbb2 (diff) |
Change error message so it's not 'out of range' when a tag doesn't exist
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3839 e03df62e-2008-0410-955e-edbf42e46eb7
-rw-r--r-- | src/inspircd_io.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/inspircd_io.cpp b/src/inspircd_io.cpp index bd63d8bf4..ed380483a 100644 --- a/src/inspircd_io.cpp +++ b/src/inspircd_io.cpp @@ -1276,9 +1276,13 @@ bool ServerConfig::ConfValue(ConfigDataHash &target, const std::string &tag, con } } } + else if(pos == 0) + { + log(DEBUG, "No <%s> tags in config file.", tag.c_str()); + } else { - log(DEBUG, "ConfValue got an out-of-range index %d", pos); + log(DEBUG, "ConfValue got an out-of-range index %d, there are only %d occurences of %s", pos, target.count(tag), tag.c_str()); } return false; |