From 0f49d1051a96645a576e49cb025198d1b5c9dc60 Mon Sep 17 00:00:00 2001 From: Adam Date: Thu, 3 Nov 2016 22:58:50 -0400 Subject: Don't try to include files with empty paths --- src/config.cpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src') 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."); -- cgit