From dbfcc74e23067a1cc2ceb3bccfff9e8868947419 Mon Sep 17 00:00:00 2001 From: Sadie Powell Date: Sun, 9 Jan 2022 14:38:01 +0000 Subject: Always catch exceptions as a constant reference. --- src/modules/m_customprefix.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/modules/m_customprefix.cpp') 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() + ")"); } -- cgit v1.3.1-10-gc9f91