From a12f61d463c589c29d8ba1d2a91d81a13a739697 Mon Sep 17 00:00:00 2001 From: Matt Woodrow Date: Wed, 14 May 2008 22:40:03 +0000 Subject: [PATCH] Fixed amb1657 - Server should see admin version of sm_who --HG-- branch : sourcemod-1.0.1 extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/branches/sourcemod-1.0.1%402146 --- plugins/basecommands/who.sp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/plugins/basecommands/who.sp b/plugins/basecommands/who.sp index 699528e1..69e60579 100644 --- a/plugins/basecommands/who.sp +++ b/plugins/basecommands/who.sp @@ -4,7 +4,7 @@ * SourceMod Basecommands Plugin * Provides sm_who functionality * - * SourceMod (C)2004-2007 AlliedModders LLC. All rights reserved. + * SourceMod (C)2004-2008 AlliedModders LLC. All rights reserved. * ============================================================================= * * This program is free software; you can redistribute it and/or modify it under @@ -28,7 +28,7 @@ * exceptions, found in LICENSE.txt (as of this writing, version JULY-31-2007), * or . * - * Version: $Id: admin-flatfile.sp 1438 2007-09-16 03:45:06Z dvander $ + * Version: $Id$ */ PerformWho(client, target, ReplySource:reply, bool:is_admin) @@ -166,7 +166,7 @@ public Action:Command_Who(client, args) { new bool:is_admin = false; - if (client && GetUserFlagBits(client) != 0) + if (!client || (client && GetUserFlagBits(client) != 0)) { is_admin = true; }