summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--modules/encryption/old.cpp2
-rw-r--r--src/config.cpp3
2 files changed, 4 insertions, 1 deletions
diff --git a/modules/encryption/old.cpp b/modules/encryption/old.cpp
index 22065e441..99767aabe 100644
--- a/modules/encryption/old.cpp
+++ b/modules/encryption/old.cpp
@@ -64,7 +64,7 @@ class EOld : public Module
if (ModuleManager::FindFirstOf(ENCRYPTION) == this)
throw ModuleException("enc_old is deprecated and can not be used as a primary encryption method");
- ModuleManager::LoadModule("enc_md5", User::Find(creator));
+ ModuleManager::LoadModule("enc_md5", User::Find(creator, true));
if (!md5)
throw ModuleException("Unable to find md5 reference");
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.");