modreload: Causing an entire 50,000 user network to crash due to user-error is a bad idea, don't let it happen again by not allowing paths in /modreload.
This commit is contained in:
parent
dcb22e07b9
commit
7d778d510a
1 changed files with 3 additions and 3 deletions
|
@ -423,11 +423,11 @@ mo_modreload(struct Client *client_p, struct Client *source_p, int parc, const c
|
|||
return 0;
|
||||
}
|
||||
|
||||
if((load_one_module(parv[1], check_core) == -1) && check_core)
|
||||
if((load_one_module(m_bn, check_core) == -1) && check_core)
|
||||
{
|
||||
sendto_realops_snomask(SNO_GENERAL, L_ALL,
|
||||
"Error reloading core module: %s: terminating ircd", parv[1]);
|
||||
ilog(L_MAIN, "Error loading core module %s: terminating ircd", parv[1]);
|
||||
"Error reloading core module: %s: terminating ircd", m_bn);
|
||||
ilog(L_MAIN, "Error loading core module %s: terminating ircd", m_bn);
|
||||
exit(0);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue