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_hidemode.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_hidemode.cpp')
| -rw-r--r-- | src/modules/m_hidemode.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/modules/m_hidemode.cpp b/src/modules/m_hidemode.cpp index 360a7aa56..58e6fa655 100644 --- a/src/modules/m_hidemode.cpp +++ b/src/modules/m_hidemode.cpp @@ -46,11 +46,11 @@ class Settings { const std::string modename = tag->getString("mode"); if (modename.empty()) - throw ModuleException("<hidemode:mode> is empty at " + tag->getTagLocation()); + throw ModuleException("<hidemode:mode> is empty at " + tag->source.str()); unsigned int rank = tag->getUInt("rank", 0); if (!rank) - throw ModuleException("<hidemode:rank> must be greater than 0 at " + tag->getTagLocation()); + throw ModuleException("<hidemode:rank> must be greater than 0 at " + tag->source.str()); ServerInstance->Logs.Log(MODNAME, LOG_DEBUG, "Hiding the %s mode from users below rank %u", modename.c_str(), rank); newranks.insert(std::make_pair(modename, rank)); |
