core/smn_player.cpp
changeset 449 e24772d5d9eb
parent 448 25984ddd0ce0
child 456 b181fc6f59c7
     1.1 --- a/core/smn_player.cpp	Wed Feb 07 08:44:48 2007 +0000
     1.2 +++ b/core/smn_player.cpp	Wed Feb 07 19:30:53 2007 +0000
     1.3 @@ -98,7 +98,13 @@
     1.4  		return pCtx->ThrowNativeError("Client %d is not connected.", index);
     1.5  	}
     1.6  
     1.7 +	if (!pPlayer->IsAuthorized())
     1.8 +	{
     1.9 +		return 0;
    1.10 +	}
    1.11 +
    1.12  	pCtx->StringToLocal(params[2], static_cast<size_t>(params[3]), pPlayer->GetAuthString());
    1.13 +
    1.14  	return 1;
    1.15  }
    1.16