]> de.git.xonotic.org Git - xonotic/darkplaces.git/blobdiff - host_cmd.c
print botclient as address in status reports for clients with no netconnection
[xonotic/darkplaces.git] / 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");
        }
 }