Merge pull request #160 from Salanto/getarea_showname

Add showname to /getarea
This commit is contained in:
Rose Witchaven 2021-07-29 13:01:07 -05:00 committed by GitHub
commit 81f365030b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -49,6 +49,8 @@ QStringList AOClient::buildAreaList(int area_idx)
QString char_entry = "[" + QString::number(client->id) + "] " + client->current_char;
if (client->current_char == "")
char_entry += "Spectator";
if (client->showname != "")
char_entry += " (" + client->showname + ")";
if (area->owners().contains(client->id))
char_entry.insert(0, "[CM] ");
if (authenticated)