summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAdam <Adam@anope.org>2016-11-03 22:58:50 -0400
committerAdam <Adam@anope.org>2016-11-03 22:58:50 -0400
commit0f49d1051a96645a576e49cb025198d1b5c9dc60 (patch)
treee37ccd2a9c2bfc12a3679f51e72eeb1ea11965be /src
parent4b97a9b13f2aa2b27e1ecd050db3b94f9b40ac77 (diff)
Don't try to include files with empty paths
Diffstat (limited to 'src')
-rw-r--r--src/config.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/config.cpp b/src/config.cpp
index c9a4a53c8..e821ac099 100644
--- a/src/config.cpp
+++ b/src/config.cpp
@@ -709,6 +709,9 @@ Anope::string File::Read()
void Conf::LoadConf(File &file)
{
+ if (file.GetName().empty())
+ return;
+
if (!file.Open())
throw ConfigException("File " + file.GetName() + " could not be opened.");