aboutsummaryrefslogtreecommitdiff
path: root/src/modules/m_customtitle.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_customtitle.cpp
parentMerge branch 'insp3' into master. (diff)
Refactor CoreException and ModuleException.
Diffstat (limited to 'src/modules/m_customtitle.cpp')
-rw-r--r--src/modules/m_customtitle.cpp4
1 files changed, 2 insertions, 2 deletions
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("<title:name> is empty at " + tag->source.str());
+ throw ModuleException(this, "<title:name> is empty at " + tag->source.str());
std::string pass = tag->getString("password");
if (pass.empty())
- throw ModuleException("<title:password> is empty at " + tag->source.str());
+ throw ModuleException(this, "<title:password> is empty at " + tag->source.str());
const std::string hash = tag->getString("hash", "plaintext", 1);
if (stdalgo::string::equalsci(hash, "plaintext"))