1
0
mirror of https://github.com/anope/anope.git synced 2026-07-03 05:13:14 +02:00

Fix crash loading enc_old prior to the proto mods

This commit is contained in:
Adam
2016-11-03 22:54:35 -04:00
parent 07f72a3122
commit 4b97a9b13f
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -45,7 +45,7 @@ class EOld : public Module
oldmd5provider(this)
{
ModuleManager::LoadModule("enc_md5", User::Find(creator));
ModuleManager::LoadModule("enc_md5", User::Find(creator, true));
if (!md5)
throw ModuleException("Unable to find md5 reference");
+1 -1
View File
@@ -816,7 +816,7 @@ bool User::BadPassword()
User* User::Find(const Anope::string &name, bool nick_only)
{
if (!nick_only && IRCD->RequiresID)
if (!nick_only && IRCD && IRCD->RequiresID)
{
user_map::iterator it = UserListByUID.find(name);
if (it != UserListByUID.end())