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
This commit is contained in:
Matt Woodrow 2008-05-14 22:40:03 +00:00
parent 7d372ceedc
commit a12f61d463

View File

@ -4,7 +4,7 @@
* SourceMod Basecommands Plugin * SourceMod Basecommands Plugin
* Provides sm_who functionality * 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 * 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), * exceptions, found in LICENSE.txt (as of this writing, version JULY-31-2007),
* or <http://www.sourcemod.net/license.php>. * or <http://www.sourcemod.net/license.php>.
* *
* Version: $Id: admin-flatfile.sp 1438 2007-09-16 03:45:06Z dvander $ * Version: $Id$
*/ */
PerformWho(client, target, ReplySource:reply, bool:is_admin) PerformWho(client, target, ReplySource:reply, bool:is_admin)
@ -166,7 +166,7 @@ public Action:Command_Who(client, args)
{ {
new bool:is_admin = false; new bool:is_admin = false;
if (client && GetUserFlagBits(client) != 0) if (!client || (client && GetUserFlagBits(client) != 0))
{ {
is_admin = true; is_admin = true;
} }