From 7cf00bb3a4a31f130eda0b82dd4db071d537f048 Mon Sep 17 00:00:00 2001 From: richard Date: Wed, 28 Oct 2009 23:39:58 +0100 Subject: [PATCH] Fixed privilege check on incorrect command (zspawn). --- src/zr/zspawn.inc | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/src/zr/zspawn.inc b/src/zr/zspawn.inc index ac1a0e7..05fd24d 100644 --- a/src/zr/zspawn.inc +++ b/src/zr/zspawn.inc @@ -331,13 +331,6 @@ public ZSpawnForceHandle(Handle:menu_zspawn_force, MenuAction:action, client, sl */ public Action:ZSpawnCommand(client, argc) { - // Check if privileged. - if (!ZRIsClientPrivileged(client, OperationType_Generic)) - { - TranslationReplyToCommand(client, "No access to command"); - return Plugin_Handled; - } - // If client is console, then stop and tell them this feature is for players only. if (ZRIsConsole(client)) { @@ -361,6 +354,13 @@ public Action:ZSpawnCommand(client, argc) */ public Action:ZSpawnForceCommand(client, argc) { + // Check if privileged. + if (!ZRIsClientPrivileged(client, OperationType_Generic)) + { + TranslationReplyToCommand(client, "No access to command"); + return Plugin_Handled; + } + // If not enough arguments given, then stop. if (argc < 1) {