From 4e308c40baea2679a8ee3097efded97b7dbe1a4a Mon Sep 17 00:00:00 2001 From: David Anderson Date: Fri, 2 Oct 2009 04:03:55 -0700 Subject: [PATCH] Registering "sm" command is now a silent failure. --- core/smn_console.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/core/smn_console.cpp b/core/smn_console.cpp index 4dc9951a..024c3e62 100644 --- a/core/smn_console.cpp +++ b/core/smn_console.cpp @@ -668,7 +668,7 @@ static cell_t sm_RegServerCmd(IPluginContext *pContext, const cell_t *params) if (strcasecmp(name, "sm") == 0) { - return pContext->ThrowNativeError("Cannot override \"sm\" command"); + return 0; } 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) { - return pContext->ThrowNativeError("Cannot override \"sm\" command"); + return 0; } 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) { - return pContext->ThrowNativeError("Cannot override \"sm\" command"); + return 0; } pContext->LocalToString(params[4], &help);