diff options
| author | 2022-01-09 14:38:01 +0000 | |
|---|---|---|
| committer | 2022-01-09 14:38:01 +0000 | |
| commit | dbfcc74e23067a1cc2ceb3bccfff9e8868947419 (patch) | |
| tree | c32f081119846966face3d36f6bb1af8ce4a2b9b /src/modules/m_customprefix.cpp | |
| parent | Replace 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.cpp | 2 |
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() + ")"); } |
