aboutsummaryrefslogtreecommitdiff
path: root/src/configreader.cpp
diff options
context:
space:
mode:
authorGravatar Sadie Powell2022-10-22 20:45:22 +0100
committerGravatar Sadie Powell2022-10-23 14:51:33 +0100
commit859088dac5b937208c7aff7fd3976bbc63329281 (patch)
tree79b297813d7f2cb13e6967486340912ad72d0477 /src/configreader.cpp
parentAvoid spamming opers with notices when a SQL log provider is down. (diff)
More const correctness.
Diffstat (limited to 'src/configreader.cpp')
-rw-r--r--src/configreader.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/configreader.cpp b/src/configreader.cpp
index ca4d77b6b..d91f5a389 100644
--- a/src/configreader.cpp
+++ b/src/configreader.cpp
@@ -360,7 +360,7 @@ void ServerConfig::Read()
{
valid = stack.ParseFile(ServerInstance->ConfigFileName, 0);
}
- catch (CoreException& err)
+ catch (const CoreException& err)
{
valid = false;
errstr << err.GetReason() << std::endl;
@@ -411,7 +411,7 @@ void ServerConfig::Apply(ServerConfig* old, const std::string& useruid)
CrossCheckOperClassType();
CrossCheckConnectBlocks(old);
}
- catch (CoreException& ce)
+ catch (const CoreException& ce)
{
errstr << ce.GetReason() << std::endl;
}
@@ -664,7 +664,7 @@ void ConfigReaderThread::OnStop()
ServerInstance->Logs.Debug("MODULE", "Rehashing " + modname);
mod->ReadConfig(status);
}
- catch (CoreException& modex)
+ catch (const CoreException& modex)
{
ServerInstance->Logs.Normal("MODULE", "Exception caught: " + modex.GetReason());
if (user)
@@ -680,7 +680,7 @@ void ConfigReaderThread::OnStop()
ServerInstance->Logs.CloseLogs();
ServerInstance->Logs.OpenLogs(true);
}
- catch (CoreException& ex)
+ catch (const CoreException& ex)
{
ServerInstance->Logs.Normal("LOG", "Cannot open log files: " + ex.GetReason());
if (user)