diff options
author | Adam <Adam@anope.org> | 2016-11-03 22:58:50 -0400 |
---|---|---|
committer | Adam <Adam@anope.org> | 2016-11-03 22:58:50 -0400 |
commit | 0f49d1051a96645a576e49cb025198d1b5c9dc60 (patch) | |
tree | e37ccd2a9c2bfc12a3679f51e72eeb1ea11965be /src/config.cpp | |
parent | 4b97a9b13f2aa2b27e1ecd050db3b94f9b40ac77 (diff) |
Don't try to include files with empty paths
Diffstat (limited to 'src/config.cpp')
-rw-r--r-- | src/config.cpp | 3 |
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."); |