From 7d778d510a5f20239f634d2416115386c48c7c29 Mon Sep 17 00:00:00 2001 From: William Pitcock Date: Sat, 30 Jan 2010 19:21:17 -0600 Subject: [PATCH] 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. --- src/modules.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/modules.c b/src/modules.c index 2a46244c0..ba56c9655 100644 --- a/src/modules.c +++ b/src/modules.c @@ -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); }