]> de.git.xonotic.org Git - xonotic/darkplaces.git/commitdiff
print botclient as address in status reports for clients with no netconnection
authorhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Fri, 12 Nov 2004 22:09:18 +0000 (22:09 +0000)
committerhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Fri, 12 Nov 2004 22:09:18 +0000 (22:09 +0000)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@4739 d7cf8633-e32d-0410-b094-e92efae38249

host_cmd.c

index a6b67ca6306583fe8ac1b23fa0b3bc10e1ee4edf..91aefcb1c71c6933cf9408b838b203364d50231f 100644 (file)
@@ -96,7 +96,7 @@ void Host_Status_f (void)
                else
                        hours = 0;
                print ("#%-2u %-16.16s  %3i  %2i:%02i:%02i\n", j+1, client->name, (int)client->edict->v->frags, hours, minutes, seconds);
-               print ("   %s\n", client->netconnection->address);
+               print ("   %s\n", client->netconnection ? client->netconnection->address : "botclient");
        }
 }