aboutsummaryrefslogtreecommitdiffstats
path: root/src/modules/m_spanningtree/main.cpp
diff options
context:
space:
mode:
authorGravatar Sadie Powell2022-01-09 14:38:01 +0000
committerGravatar Sadie Powell2022-01-09 14:38:01 +0000
commitdbfcc74e23067a1cc2ceb3bccfff9e8868947419 (patch)
treec32f081119846966face3d36f6bb1af8ce4a2b9b /src/modules/m_spanningtree/main.cpp
parentReplace some references to "SSL" that snuck in during the merge. (diff)
Always catch exceptions as a constant reference.
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();