aboutsummaryrefslogtreecommitdiff
path: root/src/modules/m_vhost.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_vhost.cpp
parentMerge branch 'insp3' into master. (diff)
Refactor CoreException and ModuleException.
Diffstat (limited to 'src/modules/m_vhost.cpp')
-rw-r--r--src/modules/m_vhost.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/modules/m_vhost.cpp b/src/modules/m_vhost.cpp
index f4d813ce7..5539ebb86 100644
--- a/src/modules/m_vhost.cpp
+++ b/src/modules/m_vhost.cpp
@@ -98,15 +98,15 @@ class ModuleVHost final
{
std::string mask = tag->getString("host");
if (mask.empty())
- throw ModuleException("<vhost:host> is empty! at " + tag->source.str());
+ throw ModuleException(this, "<vhost:host> is empty! at " + tag->source.str());
std::string username = tag->getString("user");
if (username.empty())
- throw ModuleException("<vhost:user> is empty! at " + tag->source.str());
+ throw ModuleException(this, "<vhost:user> is empty! at " + tag->source.str());
std::string pass = tag->getString("pass");
if (pass.empty())
- throw ModuleException("<vhost:pass> is empty! at " + tag->source.str());
+ throw ModuleException(this, "<vhost:pass> is empty! at " + tag->source.str());
const std::string hash = tag->getString("hash", "plaintext", 1);
if (stdalgo::string::equalsci(hash, "plaintext"))