From d2afbfcf42cb4599f07baea345dcc97a99db3aba Mon Sep 17 00:00:00 2001 From: om Date: Fri, 7 Apr 2006 11:47:26 +0000 Subject: 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 --- src/inspircd_io.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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; -- cgit v1.2.3