summaryrefslogtreecommitdiff
path: root/src/modules.cpp
diff options
context:
space:
mode:
authorspecial <special@e03df62e-2008-0410-955e-edbf42e46eb7>2007-09-12 11:06:36 +0000
committerspecial <special@e03df62e-2008-0410-955e-edbf42e46eb7>2007-09-12 11:06:36 +0000
commit68dc3792ee7b91fbc9cd662bd966d5c9cb63824a (patch)
tree9df4472fedbbcad99f6de259b09d49f1de22d580 /src/modules.cpp
parent639a462ea42ee360c9aeeb96bd82ed90e978f204 (diff)
Renamed the needs_unsigned parameter of ConfigReader::ReadInteger to need_positive to better reflect what it does
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8025 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src/modules.cpp')
-rw-r--r--src/modules.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/modules.cpp b/src/modules.cpp
index 0ddd6bdab..1bfe37608 100644
--- a/src/modules.cpp
+++ b/src/modules.cpp
@@ -1012,7 +1012,7 @@ bool ConfigReader::ReadFlag(const std::string &tag, const std::string &name, int
}
-long ConfigReader::ReadInteger(const std::string &tag, const std::string &name, const std::string &default_value, int index, bool needs_unsigned)
+int ConfigReader::ReadInteger(const std::string &tag, const std::string &name, const std::string &default_value, int index, bool need_positive)
{
int result;
@@ -1022,18 +1022,18 @@ long ConfigReader::ReadInteger(const std::string &tag, const std::string &name,
return 0;
}
- if ((needs_unsigned) && (result < 0))
+ if ((need_positive) && (result < 0))
{
- this->error = CONF_NOT_UNSIGNED;
+ this->error = CONF_INT_NEGATIVE;
return 0;
}
return result;
}
-long ConfigReader::ReadInteger(const std::string &tag, const std::string &name, int index, bool needs_unsigned)
+int ConfigReader::ReadInteger(const std::string &tag, const std::string &name, int index, bool need_positive)
{
- return ReadInteger(tag, name, "", index, needs_unsigned);
+ return ReadInteger(tag, name, "", index, need_positive);
}
long ConfigReader::GetError()