diff -r f41db9ce560d -r 74c32429908e core/smn_console.cpp --- a/core/smn_console.cpp Wed Sep 16 13:38:04 2009 +1200 +++ b/core/smn_console.cpp Wed Sep 16 22:37:20 2009 -0700 @@ -665,6 +665,12 @@ IPluginFunction *pFunction; pContext->LocalToString(params[1], &name); + + if (strcasecmp(name, "sm") == 0) + { + return pContext->ThrowNativeError("Cannot override \"sm\" command"); + } + pContext->LocalToString(params[3], &help); pFunction = pContext->GetFunctionById(params[2]); @@ -687,6 +693,12 @@ IPluginFunction *pFunction; pContext->LocalToString(params[1], &name); + + if (strcasecmp(name, "sm") == 0) + { + return pContext->ThrowNativeError("Cannot override \"sm\" command"); + } + pContext->LocalToString(params[3], &help); pFunction = pContext->GetFunctionById(params[2]); @@ -712,6 +724,12 @@ int cmdflags = params[6]; pContext->LocalToString(params[1], &name); + + if (strcasecmp(name, "sm") == 0) + { + return pContext->ThrowNativeError("Cannot override \"sm\" command"); + } + pContext->LocalToString(params[4], &help); pContext->LocalToString(params[5], (char **)&group); pFunction = pContext->GetFunctionById(params[2]);