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_gateway.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/modules/m_gateway.cpp') diff --git a/src/modules/m_gateway.cpp b/src/modules/m_gateway.cpp index 4cc1e0eae..b408afd24 100644 --- a/src/modules/m_gateway.cpp +++ b/src/modules/m_gateway.cpp @@ -368,7 +368,7 @@ class ModuleGateway final // Ensure that we have the parameter. if (masks.empty()) - throw ModuleException("<" + tag->name + ":mask> is a mandatory field, at " + tag->source.str()); + throw ModuleException(this, "<" + tag->name + ":mask> is a mandatory field, at " + tag->source.str()); // Determine what lookup type this host uses. const std::string type = tag->getString("type"); @@ -388,7 +388,7 @@ class ModuleGateway final // WebIRC blocks require a password. if (fingerprint.empty() && password.empty()) - throw ModuleException("When using <" + tag->name + " type=\"webirc\"> either the fingerprint or password field is required, at " + tag->source.str()); + throw ModuleException(this, "When using <" + tag->name + " type=\"webirc\"> either the fingerprint or password field is required, at " + tag->source.str()); if (!password.empty() && stdalgo::string::equalsci(passwordhash, "plaintext")) { @@ -400,7 +400,7 @@ class ModuleGateway final } else { - throw ModuleException(type + " is an invalid <" + tag->name + ":mask> type, at " + tag->source.str()); + throw ModuleException(this, type + " is an invalid <" + tag->name + ":mask> type, at " + tag->source.str()); } } -- cgit v1.3.1-10-gc9f91