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_vhost.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_vhost.cpp')
| -rw-r--r-- | src/modules/m_vhost.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
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("<vhost:host> is empty! at " + tag->getTagLocation()); + throw ModuleException("<vhost:host> is empty! at " + tag->source.str()); std::string username = tag->getString("user"); if (username.empty()) - throw ModuleException("<vhost:user> is empty! at " + tag->getTagLocation()); + throw ModuleException("<vhost:user> is empty! at " + tag->source.str()); std::string pass = tag->getString("pass"); if (pass.empty()) - throw ModuleException("<vhost:pass> is empty! at " + tag->getTagLocation()); + throw ModuleException("<vhost:pass> 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, "<vhost> 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); |
