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_denychans.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/modules/m_denychans.cpp') diff --git a/src/modules/m_denychans.cpp b/src/modules/m_denychans.cpp index 3fa768953..7d9779a18 100644 --- a/src/modules/m_denychans.cpp +++ b/src/modules/m_denychans.cpp @@ -77,7 +77,7 @@ class ModuleDenyChannels : public Module // Ensure that we have the parameter. const std::string name = tag->getString("name"); if (name.empty()) - throw ModuleException(" is a mandatory field, at " + tag->getTagLocation()); + throw ModuleException(" is a mandatory field, at " + tag->source.str()); goodchans.push_back(name); } @@ -88,19 +88,19 @@ class ModuleDenyChannels : public Module // Ensure that we have the parameter. const std::string name = tag->getString("name"); if (name.empty()) - throw ModuleException(" is a mandatory field, at " + tag->getTagLocation()); + throw ModuleException(" is a mandatory field, at " + tag->source.str()); // Ensure that we have the parameter. const std::string reason = tag->getString("reason"); if (reason.empty()) - throw ModuleException(" is a mandatory field, at " + tag->getTagLocation()); + throw ModuleException(" is a mandatory field, at " + tag->source.str()); const std::string redirect = tag->getString("redirect"); if (!redirect.empty()) { // Ensure that contains a channel name. if (!ServerInstance->IsChannel(redirect)) - throw ModuleException(" is not a valid channel name, at " + tag->getTagLocation()); + throw ModuleException(" is not a valid channel name, at " + tag->source.str()); // We defer the rest of the validation of the redirect channel until we have // finished parsing all of the badchans. -- cgit v1.3.1-10-gc9f91