aboutsummaryrefslogtreecommitdiffstats
path: root/src/modules/m_customtitle.cpp
diff options
context:
space:
mode:
authorGravatar Sadie Powell2020-11-03 19:40:42 +0000
committerGravatar Sadie Powell2020-11-03 19:54:13 +0000
commit373bc208ff8f7eceecd944114cd729b5a348d918 (patch)
tree3fc6cc31e70a00cb9670b3724e0c94256f763385 /src/modules/m_customtitle.cpp
parentReplace ConfigTag::create with a public constructor. (diff)
downloadinspircd++-373bc208ff8f7eceecd944114cd729b5a348d918.tar.gz
inspircd++-373bc208ff8f7eceecd944114cd729b5a348d918.tar.bz2
inspircd++-373bc208ff8f7eceecd944114cd729b5a348d918.zip
Move FilePosition to fileutils.h and use in ConfigTag.
Diffstat (limited to 'src/modules/m_customtitle.cpp')
-rw-r--r--src/modules/m_customtitle.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/modules/m_customtitle.cpp b/src/modules/m_customtitle.cpp
index 61b1ed42a..6dca396ac 100644
--- a/src/modules/m_customtitle.cpp
+++ b/src/modules/m_customtitle.cpp
@@ -131,17 +131,17 @@ class ModuleCustomTitle : public Module, public Whois::LineEventListener
{
std::string name = tag->getString("name", "", 1);
if (name.empty())
- throw ModuleException("<title:name> is empty at " + tag->getTagLocation());
+ throw ModuleException("<title:name> is empty at " + tag->source.str());
std::string pass = tag->getString("password");
if (pass.empty())
- throw ModuleException("<title:password> is empty at " + tag->getTagLocation());
+ throw ModuleException("<title:password> is empty at " + tag->source.str());
const std::string hash = tag->getString("hash", "plaintext", 1);
if (stdalgo::string::equalsci(hash, "plaintext"))
{
ServerInstance->Logs.Log(MODNAME, LOG_DEFAULT, "<title> tag for %s at %s contains an plain text password, this is insecure!",
- name.c_str(), tag->getTagLocation().c_str());
+ name.c_str(), tag->source.str().c_str());
}
std::string host = tag->getString("host", "*@*", 1);