summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAdam <Adam@anope.org>2017-04-07 14:09:35 -0400
committerAdam <Adam@anope.org>2017-04-07 14:09:35 -0400
commite4df4bcd7a694d559bfbc4cff19c22d9c68b6404 (patch)
tree4ba451530e35ddcd5104af253a01b71c3cab7fdd /src
parentda5e8a03aa8ae8077feab05fe76e6b092f1c8df1 (diff)
parent0f49d1051a96645a576e49cb025198d1b5c9dc60 (diff)
Merge commit '0f49d1051a96645a576e49cb025198d1b5c9dc60'
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 d47b249f0..c2306b29d 100644
--- a/src/config.cpp
+++ b/src/config.cpp
@@ -888,6 +888,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.");