mirror of
https://github.com/alliedmodders/amxmodx.git
synced 2024-12-24 13:55:36 +03:00
updated is_plugin_loaded() to expect the plugin title
This commit is contained in:
parent
586fcbc21a
commit
a23712bb19
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user