From ff62cb2eeac5b083429d52312ef81f3a60b24a76 Mon Sep 17 00:00:00 2001 From: cyberbotx Date: Tue, 6 Jan 2009 16:37:30 +0000 Subject: [PATCH] Fix crash bug in os_modload when a non-existant module is given, thanks to Ankit for spotting this. git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@1918 5417fbe8-f217-4b02-8779-1006273d7864 --- src/core/os_modload.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/core/os_modload.c b/src/core/os_modload.c index 4d8ce2118..0f03b090c 100644 --- a/src/core/os_modload.c +++ b/src/core/os_modload.c @@ -74,7 +74,7 @@ int do_modload(User * u) int status = ModuleManager::LoadModule(name, u); if (status != MOD_ERR_OK) { - notice_lang(s_OperServ, u, OPER_MODULE_LOAD_FAIL, m->name.c_str()); + notice_lang(s_OperServ, u, OPER_MODULE_LOAD_FAIL, name); } return MOD_CONT;