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_ircv3_sts.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/modules/m_ircv3_sts.cpp') 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(" must contain a hostname, at " + tag->source.str()); + throw ModuleException(this, " must contain a hostname, at " + tag->source.str()); unsigned int port = static_cast(tag->getUInt("port", 0, 0, UINT16_MAX)); if (!HasValidSSLPort(port)) - throw ModuleException(" must be a TLS port, at " + tag->source.str()); + throw ModuleException(this, " must be a TLS port, at " + tag->source.str()); unsigned long duration = tag->getDuration("duration", 5*60, 60); bool preload = tag->getBool("preload"); -- cgit v1.3.1-10-gc9f91