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:
@@ -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
@@ -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())
|
||||
|
||||
Reference in New Issue
Block a user