Registering "sm" command is now a silent failure.

This commit is contained in:
David Anderson 2009-10-02 04:03:55 -07:00
parent 47b597c3ef
commit 4e308c40ba

View File

@ -668,7 +668,7 @@ static cell_t sm_RegServerCmd(IPluginContext *pContext, const cell_t *params)
if (strcasecmp(name, "sm") == 0) if (strcasecmp(name, "sm") == 0)
{ {
return pContext->ThrowNativeError("Cannot override \"sm\" command"); return 0;
} }
pContext->LocalToString(params[3], &help); pContext->LocalToString(params[3], &help);
@ -696,7 +696,7 @@ static cell_t sm_RegConsoleCmd(IPluginContext *pContext, const cell_t *params)
if (strcasecmp(name, "sm") == 0) if (strcasecmp(name, "sm") == 0)
{ {
return pContext->ThrowNativeError("Cannot override \"sm\" command"); return 0;
} }
pContext->LocalToString(params[3], &help); pContext->LocalToString(params[3], &help);
@ -727,7 +727,7 @@ static cell_t sm_RegAdminCmd(IPluginContext *pContext, const cell_t *params)
if (strcasecmp(name, "sm") == 0) if (strcasecmp(name, "sm") == 0)
{ {
return pContext->ThrowNativeError("Cannot override \"sm\" command"); return 0;
} }
pContext->LocalToString(params[4], &help); pContext->LocalToString(params[4], &help);