]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Might as well do this instead
authorSamual <samual@xonotic.org>
Sun, 25 Dec 2011 15:37:39 +0000 (10:37 -0500)
committerSamual <samual@xonotic.org>
Sun, 25 Dec 2011 15:37:39 +0000 (10:37 -0500)
qcsrc/server/command/common.qc

index 43e49219dd491cfaa8c5efffa3a5771000614c8b..38f123bc914aa9439218d07e7f2dab86253616a4 100644 (file)
@@ -501,9 +501,6 @@ void CommonCommand_who(float request, entity caller, float argc)
                        {
                                is_bot = (clienttype(tmp_player) == CLIENTTYPE_BOT);
                                
-                               tmp_netaddress = tmp_player.netaddress;
-                               tmp_crypto_idfp = tmp_player.crypto_idfp;
-                               
                                if(is_bot)
                                {
                                        tmp_netaddress = "null/botclient";
@@ -514,6 +511,11 @@ void CommonCommand_who(float request, entity caller, float argc)
                                        tmp_netaddress = "hidden";
                                        tmp_crypto_idfp = "hidden";
                                }
+                               else
+                               {
+                                       tmp_netaddress = tmp_player.netaddress;
+                                       tmp_crypto_idfp = tmp_player.crypto_idfp;
+                               }
                                
                                tmp_hours = tmp_minutes = tmp_seconds = 0;