Don't kill cloaking users when hash/md5 is missing.

This commit is contained in:
Sadie Powell 2020-10-27 00:41:36 +00:00
parent b271e0700a
commit 7ba36f5348
2 changed files with 11 additions and 3 deletions

View File

@ -59,7 +59,7 @@ class CoreExport dynamic_reference_base : public interfacebase, public insp::int
inline void dynamic_reference_base::check()
{
if (!value)
throw ModuleException("Dynamic reference to '" + name + "' failed to resolve");
throw ModuleException("Dynamic reference to '" + name + "' failed to resolve. Are you missing a module?");
}
template<typename T>

View File

@ -146,9 +146,17 @@ class CloakUser : public ModeHandler
if (!cloaks)
{
/* Force creation of missing cloak */
try
{
creator->OnUserConnect(user);
cloaks = ext.get(user);
}
catch (CoreException& modexcept)
{
ServerInstance->Logs->Log(MODNAME, LOG_DEFAULT, "Exception caught when generating cloak: " + modexcept.GetReason());
return MODEACTION_DENY;
}
}
// If we have a cloak then set the hostname.
if (cloaks && !cloaks->empty())