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_hidemode.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/modules/m_hidemode.cpp') 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(" is empty at " + tag->getTagLocation()); + throw ModuleException(" is empty at " + tag->source.str()); unsigned int rank = tag->getUInt("rank", 0); if (!rank) - throw ModuleException(" must be greater than 0 at " + tag->getTagLocation()); + throw ModuleException(" 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)); -- cgit v1.3.1-10-gc9f91