From a23712bb19b8cc775f9a9f137ec95c438479cbf4 Mon Sep 17 00:00:00 2001 From: Felix Geyer Date: Sun, 22 Aug 2004 20:59:46 +0000 Subject: [PATCH] updated is_plugin_loaded() to expect the plugin title --- amxmodx/amxmodx.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/amxmodx/amxmodx.cpp b/amxmodx/amxmodx.cpp index c3eef7a1..a48233ce 100755 --- a/amxmodx/amxmodx.cpp +++ b/amxmodx/amxmodx.cpp @@ -228,14 +228,14 @@ 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); if ( !ilen ) szHead = hostname->string; char* szBody = get_amxstring(amx,params[2],1,ilen); int iFile = 0; - char* sToShow = NULL;// = szBody; + char* sToShow = NULL; // = szBody; if (ilen<128) sToShow = (char*)LOAD_FILE_FOR_ME( szBody , &iFile ); if (!iFile) sToShow = szBody; @@ -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; }