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_cgiirc.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/modules/m_cgiirc.cpp') diff --git a/src/modules/m_cgiirc.cpp b/src/modules/m_cgiirc.cpp index ea6c22e9c..9a7de76c0 100644 --- a/src/modules/m_cgiirc.cpp +++ b/src/modules/m_cgiirc.cpp @@ -290,7 +290,7 @@ class ModuleCgiIRC // Ensure that we have the parameter. const std::string mask = tag->getString("mask"); if (mask.empty()) - throw ModuleException(" is a mandatory field, at " + tag->getTagLocation()); + throw ModuleException(" is a mandatory field, at " + tag->source.str()); // Determine what lookup type this host uses. const std::string type = tag->getString("type"); @@ -309,19 +309,19 @@ class ModuleCgiIRC // WebIRC blocks require a password. if (fingerprint.empty() && password.empty()) - throw ModuleException("When using either the fingerprint or password field is required, at " + tag->getTagLocation()); + throw ModuleException("When using either the fingerprint or password field is required, at " + tag->source.str()); if (!password.empty() && stdalgo::string::equalsci(passwordhash, "plaintext")) { ServerInstance->Logs.Log(MODNAME, LOG_DEFAULT, " tag at %s contains an plain text password, this is insecure!", - tag->getTagLocation().c_str()); + tag->source.str().c_str()); } webirchosts.push_back(WebIRCHost(mask, fingerprint, password, passwordhash)); } else { - throw ModuleException(type + " is an invalid type, at " + tag->getTagLocation()); + throw ModuleException(type + " is an invalid type, at " + tag->source.str()); } } -- cgit v1.3.1-10-gc9f91