0
0
Fork 0
mirror of https://github.com/matrix-construct/construct synced 2024-11-26 08:42:34 +01:00

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:
William Pitcock 2010-01-30 19:21:17 -06:00
parent dcb22e07b9
commit 7d778d510a

View file

@ -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);
}