aboutsummaryrefslogtreecommitdiffstats
path: root/src/modules/m_restrictchans.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_restrictchans.cpp
parentReplace ConfigTag::create with a public constructor. (diff)
downloadinspircd++-373bc208ff8f7eceecd944114cd729b5a348d918.tar.gz
inspircd++-373bc208ff8f7eceecd944114cd729b5a348d918.tar.bz2
inspircd++-373bc208ff8f7eceecd944114cd729b5a348d918.zip
Move FilePosition to fileutils.h and use in ConfigTag.
Diffstat (limited to 'src/modules/m_restrictchans.cpp')
-rw-r--r--src/modules/m_restrictchans.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/modules/m_restrictchans.cpp b/src/modules/m_restrictchans.cpp
index 4ed4049c5..ccbc5592e 100644
--- a/src/modules/m_restrictchans.cpp
+++ b/src/modules/m_restrictchans.cpp
@@ -65,7 +65,7 @@ class ModuleRestrictChans : public Module
{
const std::string name = tag->getString("name");
if (name.empty())
- throw ModuleException("Empty <allowchannel:name> at " + tag->getTagLocation());
+ throw ModuleException("Empty <allowchannel:name> at " + tag->source.str());
newallows.insert(name);
}