mirror of
https://github.com/anope/anope.git
synced 2026-07-03 05:53:12 +02:00
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
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user