diff -r 25984ddd0ce0 -r e24772d5d9eb core/smn_player.cpp --- a/core/smn_player.cpp Wed Feb 07 08:44:48 2007 +0000 +++ b/core/smn_player.cpp Wed Feb 07 19:30:53 2007 +0000 @@ -98,7 +98,13 @@ return pCtx->ThrowNativeError("Client %d is not connected.", index); } + if (!pPlayer->IsAuthorized()) + { + return 0; + } + pCtx->StringToLocal(params[2], static_cast(params[3]), pPlayer->GetAuthString()); + return 1; }