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_helpop.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/modules/m_helpop.cpp') diff --git a/src/modules/m_helpop.cpp b/src/modules/m_helpop.cpp index e575820f6..c91534f7a 100644 --- a/src/modules/m_helpop.cpp +++ b/src/modules/m_helpop.cpp @@ -124,16 +124,16 @@ class ModuleHelpop // Attempt to read the help key. const std::string key = tag->getString("key"); if (key.empty()) - throw ModuleException(InspIRCd::Format(" is empty at %s", tag->getTagLocation().c_str())); + throw ModuleException(InspIRCd::Format(" is empty at %s", tag->source.str().c_str())); else if (irc::equals(key, "index")) - throw ModuleException(InspIRCd::Format(" is set to \"index\" which is reserved at %s", tag->getTagLocation().c_str())); + throw ModuleException(InspIRCd::Format(" is set to \"index\" which is reserved at %s", tag->source.str().c_str())); else if (key.length() > longestkey) longestkey = key.length(); // Attempt to read the help value. std::string value; if (!tag->readString("value", value, true) || value.empty()) - throw ModuleException(InspIRCd::Format(" is empty at %s", tag->getTagLocation().c_str())); + throw ModuleException(InspIRCd::Format(" is empty at %s", tag->source.str().c_str())); // Parse the help body. Empty lines are replaced with a single // space because some clients are unable to show blank lines. @@ -147,7 +147,7 @@ class ModuleHelpop if (!newhelp.insert(std::make_pair(key, HelpTopic(helpmsg, title))).second) { throw ModuleException(InspIRCd::Format(" tag with duplicate key '%s' at %s", - key.c_str(), tag->getTagLocation().c_str())); + key.c_str(), tag->source.str().c_str())); } } -- cgit v1.3.1-10-gc9f91