aboutsummaryrefslogtreecommitdiffstats
path: root/src/modules/m_denychans.cpp
diff options
context:
space:
mode:
authorGravatar Sadie Powell2020-11-03 19:40:42 +0000
committerGravatar Sadie Powell2020-11-03 19:54:13 +0000
commit373bc208ff8f7eceecd944114cd729b5a348d918 (patch)
tree3fc6cc31e70a00cb9670b3724e0c94256f763385 /src/modules/m_denychans.cpp
parentReplace ConfigTag::create with a public constructor. (diff)
Move FilePosition to fileutils.h and use in ConfigTag.
Diffstat (limited to 'src/modules/m_denychans.cpp')
-rw-r--r--src/modules/m_denychans.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/modules/m_denychans.cpp b/src/modules/m_denychans.cpp
index 3fa768953..7d9779a18 100644
--- a/src/modules/m_denychans.cpp
+++ b/src/modules/m_denychans.cpp
@@ -77,7 +77,7 @@ class ModuleDenyChannels : public Module
// Ensure that we have the <goodchan:name> parameter.
const std::string name = tag->getString("name");
if (name.empty())
- throw ModuleException("<goodchan:name> is a mandatory field, at " + tag->getTagLocation());
+ throw ModuleException("<goodchan:name> is a mandatory field, at " + tag->source.str());
goodchans.push_back(name);
}
@@ -88,19 +88,19 @@ class ModuleDenyChannels : public Module
// Ensure that we have the <badchan:name> parameter.
const std::string name = tag->getString("name");
if (name.empty())
- throw ModuleException("<badchan:name> is a mandatory field, at " + tag->getTagLocation());
+ throw ModuleException("<badchan:name> is a mandatory field, at " + tag->source.str());
// Ensure that we have the <badchan:reason> parameter.
const std::string reason = tag->getString("reason");
if (reason.empty())
- throw ModuleException("<badchan:reason> is a mandatory field, at " + tag->getTagLocation());
+ throw ModuleException("<badchan:reason> is a mandatory field, at " + tag->source.str());
const std::string redirect = tag->getString("redirect");
if (!redirect.empty())
{
// Ensure that <badchan:redirect> contains a channel name.
if (!ServerInstance->IsChannel(redirect))
- throw ModuleException("<badchan:redirect> is not a valid channel name, at " + tag->getTagLocation());
+ throw ModuleException("<badchan:redirect> is not a valid channel name, at " + tag->source.str());
// We defer the rest of the validation of the redirect channel until we have
// finished parsing all of the badchans.