aboutsummaryrefslogtreecommitdiffstats
path: root/src/configparser.cpp
diff options
context:
space:
mode:
authorGravatar Attila Molnar2013-05-21 17:11:46 -0700
committerGravatar Attila Molnar2013-05-21 17:11:46 -0700
commitb36ce84c7da93f680fc397bcb4c877abe063eaaa (patch)
tree4e5a593816383612d0e49bf6e4affa4f3d354dc8 /src/configparser.cpp
parentMerge pull request #522 from SaberUK/master+xline-displayable (diff)
parentFix spacing in calls to LogManager::Log. (diff)
downloadinspircd++-b36ce84c7da93f680fc397bcb4c877abe063eaaa.tar.gz
inspircd++-b36ce84c7da93f680fc397bcb4c877abe063eaaa.tar.bz2
inspircd++-b36ce84c7da93f680fc397bcb4c877abe063eaaa.zip
Merge pull request #545 from SaberUK/master+logging-cleanup
Clean up the logging system (part 1 of 2).
Diffstat (limited to 'src/configparser.cpp')
-rw-r--r--src/configparser.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/configparser.cpp b/src/configparser.cpp
index ec6a6c8e5..61cdb55fa 100644
--- a/src/configparser.cpp
+++ b/src/configparser.cpp
@@ -399,7 +399,7 @@ bool ConfigTag::readString(const std::string& key, std::string& value, bool allo
value = j->second;
if (!allow_lf && (value.find('\n') != std::string::npos))
{
- ServerInstance->Logs->Log("CONFIG",LOG_DEFAULT, "Value of <" + tag + ":" + key + "> at " + getTagLocation() +
+ ServerInstance->Logs->Log("CONFIG", LOG_DEFAULT, "Value of <" + tag + ":" + key + "> at " + getTagLocation() +
" contains a linefeed, and linefeeds in this value are not permitted -- stripped to spaces.");
for (std::string::iterator n = value.begin(); n != value.end(); n++)
if (*n == '\n')
@@ -462,7 +462,7 @@ bool ConfigTag::getBool(const std::string &key, bool def)
if (result == "no" || result == "false" || result == "0" || result == "off")
return false;
- ServerInstance->Logs->Log("CONFIG",LOG_DEFAULT, "Value of <" + tag + ":" + key + "> at " + getTagLocation() +
+ ServerInstance->Logs->Log("CONFIG", LOG_DEFAULT, "Value of <" + tag + ":" + key + "> at " + getTagLocation() +
" is not valid, ignoring");
return def;
}