aboutsummaryrefslogtreecommitdiff
path: root/src/modules/m_ircv3_sts.cpp
diff options
context:
space:
mode:
authorGravatar Sadie Powell2022-01-07 17:12:42 +0000
committerGravatar Sadie Powell2022-01-07 17:16:50 +0000
commit52cc8a418307ae7a551d23e6bd2d367b544e7bf9 (patch)
tree9fff020964190f33174e78ff6201381be577d0b3 /src/modules/m_ircv3_sts.cpp
parentMerge branch 'insp3' into master. (diff)
Refactor CoreException and ModuleException.
Diffstat (limited to 'src/modules/m_ircv3_sts.cpp')
-rw-r--r--src/modules/m_ircv3_sts.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/modules/m_ircv3_sts.cpp b/src/modules/m_ircv3_sts.cpp
index b59025130..3b9794a96 100644
--- a/src/modules/m_ircv3_sts.cpp
+++ b/src/modules/m_ircv3_sts.cpp
@@ -163,15 +163,15 @@ class ModuleIRCv3STS final
// TODO: Multiple SNI profiles
auto tag = ServerInstance->Config->ConfValue("sts");
if (tag == ServerInstance->Config->EmptyTag)
- throw ModuleException("You must define a STS policy!");
+ throw ModuleException(this, "You must define a STS policy!");
const std::string host = tag->getString("host");
if (host.empty())
- throw ModuleException("<sts:host> must contain a hostname, at " + tag->source.str());
+ throw ModuleException(this, "<sts:host> must contain a hostname, at " + tag->source.str());
unsigned int port = static_cast<unsigned int>(tag->getUInt("port", 0, 0, UINT16_MAX));
if (!HasValidSSLPort(port))
- throw ModuleException("<sts:port> must be a TLS port, at " + tag->source.str());
+ throw ModuleException(this, "<sts:port> must be a TLS port, at " + tag->source.str());
unsigned long duration = tag->getDuration("duration", 5*60, 60);
bool preload = tag->getBool("preload");