diff options
| author | 2020-11-03 19:40:42 +0000 | |
|---|---|---|
| committer | 2020-11-03 19:54:13 +0000 | |
| commit | 373bc208ff8f7eceecd944114cd729b5a348d918 (patch) | |
| tree | 3fc6cc31e70a00cb9670b3724e0c94256f763385 /src/modules/m_alias.cpp | |
| parent | Replace ConfigTag::create with a public constructor. (diff) | |
Move FilePosition to fileutils.h and use in ConfigTag.
Diffstat (limited to 'src/modules/m_alias.cpp')
| -rw-r--r-- | src/modules/m_alias.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/modules/m_alias.cpp b/src/modules/m_alias.cpp index 58328af88..0cf6e4a08 100644 --- a/src/modules/m_alias.cpp +++ b/src/modules/m_alias.cpp @@ -88,11 +88,11 @@ class ModuleAlias : public Module Alias a; a.AliasedCommand = tag->getString("text"); if (a.AliasedCommand.empty()) - throw ModuleException("<alias:text> is empty! at " + tag->getTagLocation()); + throw ModuleException("<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->getTagLocation()); + throw ModuleException("<alias:replace> is empty! at " + tag->source.str()); a.RequiredNick = tag->getString("requires"); a.ULineOnly = tag->getBool("uline"); |
