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_vhost.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/modules/m_vhost.cpp') diff --git a/src/modules/m_vhost.cpp b/src/modules/m_vhost.cpp index 2a519f23d..b5f47b7cd 100644 --- a/src/modules/m_vhost.cpp +++ b/src/modules/m_vhost.cpp @@ -102,21 +102,21 @@ class ModuleVHost : public Module { std::string mask = tag->getString("host"); if (mask.empty()) - throw ModuleException(" is empty! at " + tag->getTagLocation()); + throw ModuleException(" is empty! at " + tag->source.str()); std::string username = tag->getString("user"); if (username.empty()) - throw ModuleException(" is empty! at " + tag->getTagLocation()); + throw ModuleException(" is empty! at " + tag->source.str()); std::string pass = tag->getString("pass"); if (pass.empty()) - throw ModuleException(" is empty! at " + tag->getTagLocation()); + throw ModuleException(" 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, " tag for %s at %s contains an plain text password, this is insecure!", - username.c_str(), tag->getTagLocation().c_str()); + username.c_str(), tag->source.str().c_str()); } CustomVhost vhost(username, pass, hash, mask); -- cgit v1.3.1-10-gc9f91