From 4d9ef26dbc05d194e93a785e84510971bf77e051 Mon Sep 17 00:00:00 2001 From: David Anderson Date: Fri, 16 Nov 2007 14:04:05 +0000 Subject: [PATCH] fixed amb1162 - SetUserAdmin() did not work as documented --HG-- extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%401687 --- core/smn_player.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/smn_player.cpp b/core/smn_player.cpp index 78646639..1b78a11d 100644 --- a/core/smn_player.cpp +++ b/core/smn_player.cpp @@ -259,7 +259,7 @@ static cell_t SetUserAdmin(IPluginContext *pContext, const cell_t *params) { return pContext->ThrowNativeError("Client %d is not connected", client); } - if (!g_Admins.IsValidAdmin(params[2])) + if (!g_Admins.IsValidAdmin(params[2]) && id != INVALID_ADMIN_ID) { return pContext->ThrowNativeError("AdminId %x is invalid", params[2]); }