diff options
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() + ")"); } |
