aboutsummaryrefslogtreecommitdiffstats
path: root/src/modules/m_spanningtree/main.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/modules/m_spanningtree/main.cpp')
-rw-r--r--src/modules/m_spanningtree/main.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/modules/m_spanningtree/main.cpp b/src/modules/m_spanningtree/main.cpp
index 02668d190..70005841f 100644
--- a/src/modules/m_spanningtree/main.cpp
+++ b/src/modules/m_spanningtree/main.cpp
@@ -269,7 +269,7 @@ void ModuleSpanningTree::ConnectServer(std::shared_ptr<Link> x, std::shared_ptr<
{
DNS->Process(snr);
}
- catch (DNS::Exception& e)
+ catch (const DNS::Exception& e)
{
delete snr;
ServerInstance->SNO.WriteToSnoMask('l', "CONNECT: Error connecting \002%s\002: %s.",x->Name.c_str(), e.GetReason().c_str());
@@ -676,7 +676,7 @@ void ModuleSpanningTree::ReadConfig(ConfigStatus& status)
{
Utils->ReadConfiguration();
}
- catch (ModuleException& e)
+ catch (const ModuleException& e)
{
// Refresh the IP cache anyway, so servers read before the error will be allowed to connect
Utils->RefreshIPCache();