mirror of
https://github.com/inspircd/inspircd.git
synced 2025-03-10 02:59:01 -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()
|
inline void dynamic_reference_base::check()
|
||||||
{
|
{
|
||||||
if (!value)
|
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>
|
template<typename T>
|
||||||
|
@ -146,8 +146,16 @@ class CloakUser : public ModeHandler
|
|||||||
if (!cloaks)
|
if (!cloaks)
|
||||||
{
|
{
|
||||||
/* Force creation of missing cloak */
|
/* Force creation of missing cloak */
|
||||||
creator->OnUserConnect(user);
|
try
|
||||||
cloaks = ext.get(user);
|
{
|
||||||
|
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 we have a cloak then set the hostname.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user