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_customtitle.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/modules/m_customtitle.cpp') diff --git a/src/modules/m_customtitle.cpp b/src/modules/m_customtitle.cpp index ef9c0ae1c..9833c70f7 100644 --- a/src/modules/m_customtitle.cpp +++ b/src/modules/m_customtitle.cpp @@ -118,11 +118,11 @@ class ModuleCustomTitle final { std::string name = tag->getString("name", "", 1); if (name.empty()) - throw ModuleException(" is empty at " + tag->source.str()); + throw ModuleException(this, " is empty at " + tag->source.str()); std::string pass = tag->getString("password"); 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