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_vhost.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/modules/m_vhost.cpp') 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(" is empty! at " + tag->source.str()); + throw ModuleException(this, " is empty! at " + tag->source.str()); std::string username = tag->getString("user"); if (username.empty()) - throw ModuleException(" is empty! at " + tag->source.str()); + throw ModuleException(this, " is empty! at " + tag->source.str()); std::string pass = tag->getString("pass"); if (pass.empty()) - throw ModuleException(" is empty! at " + tag->source.str()); + throw ModuleException(this, " is empty! at " + tag->source.str()); const std::string hash = tag->getString("hash", "plaintext", 1); if (stdalgo::string::equalsci(hash, "plaintext")) -- cgit v1.3.1-10-gc9f91