aboutsummaryrefslogtreecommitdiff
path: root/src/modules/m_alias.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_alias.cpp
parentMerge branch 'insp3' into master. (diff)
Refactor CoreException and ModuleException.
Diffstat (limited to 'src/modules/m_alias.cpp')
-rw-r--r--src/modules/m_alias.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/modules/m_alias.cpp b/src/modules/m_alias.cpp
index 8ce6a5a9f..4dc1aa477 100644
--- a/src/modules/m_alias.cpp
+++ b/src/modules/m_alias.cpp
@@ -89,11 +89,11 @@ class ModuleAlias final
Alias a;
a.AliasedCommand = tag->getString("text");
if (a.AliasedCommand.empty())
- throw ModuleException("<alias:text> is empty! at " + tag->source.str());
+ throw ModuleException(this, "<alias:text> is empty! at " + tag->source.str());
tag->readString("replace", a.ReplaceFormat, true);
if (a.ReplaceFormat.empty())
- throw ModuleException("<alias:replace> is empty! at " + tag->source.str());
+ throw ModuleException(this, "<alias:replace> is empty! at " + tag->source.str());
a.RequiredNick = tag->getString("requires");
a.ServiceOnly = tag->getBool("service", tag->getBool("uline"));