Registering "sm" logs an error, but will not throw.

This commit is contained in:
David Anderson 2010-01-14 01:11:38 -08:00
parent b6507b12d4
commit 664da97c42

View File

@ -670,7 +670,8 @@ static cell_t sm_RegServerCmd(IPluginContext *pContext, const cell_t *params)
if (strcasecmp(name, "sm") == 0)
{
return pContext->ThrowNativeError("Cannot register \"sm\" command");
g_Logger.LogError("Request to register \"sm\" command denied.");
return 0;
}
pContext->LocalToString(params[3], &help);
@ -698,7 +699,8 @@ static cell_t sm_RegConsoleCmd(IPluginContext *pContext, const cell_t *params)
if (strcasecmp(name, "sm") == 0)
{
return pContext->ThrowNativeError("Cannot register \"sm\" command");
g_Logger.LogError("Request to register \"sm\" command denied.");
return 0;
}
pContext->LocalToString(params[3], &help);
@ -729,7 +731,8 @@ static cell_t sm_RegAdminCmd(IPluginContext *pContext, const cell_t *params)
if (strcasecmp(name, "sm") == 0)
{
return pContext->ThrowNativeError("Cannot register \"sm\" command");
g_Logger.LogError("Request to register \"sm\" command denied.");
return 0;
}
pContext->LocalToString(params[4], &help);