aboutsummaryrefslogtreecommitdiff
path: root/src/modules/m_customprefix.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_customprefix.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_customprefix.cpp')
-rw-r--r--src/modules/m_customprefix.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/modules/m_customprefix.cpp b/src/modules/m_customprefix.cpp
index b077ef7e9..0db6c00c3 100644
--- a/src/modules/m_customprefix.cpp
+++ b/src/modules/m_customprefix.cpp
@@ -101,7 +101,7 @@ class ModuleCustomPrefix final
modes.push_back(mh);
ServerInstance->Modules.AddService(*mh);
}
- catch (ModuleException& e)
+ catch (const ModuleException& e)
{
throw ModuleException(this, e.GetReason() + " (while creating mode from " + tag->source.str() + ")");
}