summaryrefslogtreecommitdiff
path: root/src/config.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/config.cpp')
-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.");