From 373bc208ff8f7eceecd944114cd729b5a348d918 Mon Sep 17 00:00:00 2001 From: Sadie Powell Date: Tue, 3 Nov 2020 19:40:42 +0000 Subject: Move FilePosition to fileutils.h and use in ConfigTag. --- src/modules/m_censor.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/modules/m_censor.cpp') 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(" is empty! at " + tag->getTagLocation()); + throw ModuleException(" is empty! at " + tag->source.str()); const std::string replace = tag->getString("replace"); newcensors[text] = replace; -- cgit v1.3.1-10-gc9f91