diff options
| author | 2022-01-07 17:12:42 +0000 | |
|---|---|---|
| committer | 2022-01-07 17:16:50 +0000 | |
| commit | 52cc8a418307ae7a551d23e6bd2d367b544e7bf9 (patch) | |
| tree | 9fff020964190f33174e78ff6201381be577d0b3 /src/modules/m_gateway.cpp | |
| parent | Merge branch 'insp3' into master. (diff) | |
Refactor CoreException and ModuleException.
Diffstat (limited to 'src/modules/m_gateway.cpp')
| -rw-r--r-- | src/modules/m_gateway.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
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 <gateway:mask> 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()); } } |
