mirror of
https://github.com/inspircd/inspircd.git
synced 2025-03-09 18:49:03 -04:00
Don't kill cloaking users when hash/md5 is missing.
This commit is contained in:
parent
b271e0700a
commit
7ba36f5348
@ -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>
|
||||
|
@ -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())
|
||||
|
Loading…
x
Reference in New Issue
Block a user