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_censor.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_censor.cpp')
| -rw-r--r-- | src/modules/m_censor.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/modules/m_censor.cpp b/src/modules/m_censor.cpp index a576ae287..3d101c4d0 100644 --- a/src/modules/m_censor.cpp +++ b/src/modules/m_censor.cpp @@ -112,7 +112,7 @@ class ModuleCensor : public Module { const std::string text = tag->getString("text"); if (text.empty()) - throw ModuleException("<badword:text> is empty! at " + tag->getTagLocation()); + throw ModuleException("<badword:text> is empty! at " + tag->source.str()); const std::string replace = tag->getString("replace"); newcensors[text] = replace; |
