From 52cc8a418307ae7a551d23e6bd2d367b544e7bf9 Mon Sep 17 00:00:00 2001 From: Sadie Powell Date: Fri, 7 Jan 2022 17:12:42 +0000 Subject: Refactor CoreException and ModuleException. --- src/modules/m_restrictchans.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/modules/m_restrictchans.cpp') diff --git a/src/modules/m_restrictchans.cpp b/src/modules/m_restrictchans.cpp index ed47dc31b..12c0de77c 100644 --- a/src/modules/m_restrictchans.cpp +++ b/src/modules/m_restrictchans.cpp @@ -66,7 +66,7 @@ class ModuleRestrictChans final { const std::string name = tag->getString("name"); if (name.empty()) - throw ModuleException("Empty at " + tag->source.str()); + throw ModuleException(this, "Empty at " + tag->source.str()); newallows.insert(name); } -- cgit v1.3.1-10-gc9f91