updated is_plugin_loaded() to expect the plugin title

This commit is contained in:
Felix Geyer 2004-08-22 20:59:46 +00:00
parent 586fcbc21a
commit a23712bb19

View File

@ -228,7 +228,7 @@ static cell AMX_NATIVE_CALL client_print(AMX *amx, cell *params) /* 3 param */
return len;
}
static cell AMX_NATIVE_CALL show_motd(AMX *amx, cell *params) /* 2 param */
static cell AMX_NATIVE_CALL show_motd(AMX *amx, cell *params) /* 3 param */
{
int ilen;
const char* szHead = get_amxstring(amx,params[3],0,ilen);
@ -2271,7 +2271,7 @@ static cell AMX_NATIVE_CALL is_plugin_loaded(AMX *amx, cell *params)
int id = 0;
for (CPluginMngr::iterator iter = g_plugins.begin(); iter; ++iter)
{
if (stricmp((*iter).getName(), name) == 0)
if (stricmp((*iter).getTitle(), name) == 0)
return id;
++id;
}