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_disable.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_disable.cpp')
| -rw-r--r-- | src/modules/m_disable.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/modules/m_disable.cpp b/src/modules/m_disable.cpp index 5b28d7987..531b99925 100644 --- a/src/modules/m_disable.cpp +++ b/src/modules/m_disable.cpp @@ -51,13 +51,13 @@ class ModuleDisable : public Module // Check that the character is a valid mode letter. if (!ModeParser::IsModeChar(chr)) throw ModuleException(InspIRCd::Format("Invalid mode '%c' was specified in <disabled:%s> at %s", - chr, field.c_str(), tag->getTagLocation().c_str())); + chr, field.c_str(), tag->source.str().c_str())); // Check that the mode actually exists. ModeHandler* mh = ServerInstance->Modes.FindMode(chr, type); if (!mh) throw ModuleException(InspIRCd::Format("Nonexistent mode '%c' was specified in <disabled:%s> at %s", - chr, field.c_str(), tag->getTagLocation().c_str())); + chr, field.c_str(), tag->source.str().c_str())); // Disable the mode. ServerInstance->Logs.Log(MODNAME, LOG_DEBUG, "The %c (%s) %s mode has been disabled", @@ -96,7 +96,7 @@ class ModuleDisable : public Module Command* handler = ServerInstance->Parser.GetHandler(command); if (!handler) throw ModuleException(InspIRCd::Format("Nonexistent command '%s' was specified in <disabled:commands> at %s", - command.c_str(), tag->getTagLocation().c_str())); + command.c_str(), tag->source.str().c_str())); // Prevent admins from disabling MODULES for transparency reasons. if (handler->name == "MODULES") |
