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_cgiirc.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_cgiirc.cpp')
| -rw-r--r-- | src/modules/m_cgiirc.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
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 <cgihost:mask> parameter. const std::string mask = tag->getString("mask"); if (mask.empty()) - throw ModuleException("<cgihost:mask> is a mandatory field, at " + tag->getTagLocation()); + throw ModuleException("<cgihost:mask> 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 <cgihost type=\"webirc\"> either the fingerprint or password field is required, at " + tag->getTagLocation()); + throw ModuleException("When using <cgihost type=\"webirc\"> 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, "<cgihost> 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 <cgihost:mask> type, at " + tag->getTagLocation()); + throw ModuleException(type + " is an invalid <cgihost:mask> type, at " + tag->source.str()); } } |
