Merge pull request #236 from Salanto/fix/235
Make /getareas work like its Tsu counterpart
This commit is contained in:
commit
1e51131649
@ -215,10 +215,12 @@ void AOClient::cmdGetAreas(int argc, QStringList argv)
|
|||||||
Q_UNUSED(argv);
|
Q_UNUSED(argv);
|
||||||
|
|
||||||
QStringList l_entries;
|
QStringList l_entries;
|
||||||
l_entries.append("== Area List ==");
|
l_entries.append("\n== Currently Online: " + QString::number(server->m_player_count)+ " ==");
|
||||||
for (int i = 0; i < server->m_area_names.length(); i++) {
|
for (int i = 0; i < server->m_area_names.length(); i++) {
|
||||||
QStringList l_cur_area_lines = buildAreaList(i);
|
if (server->m_areas.value(i)->playerCount() > 0) {
|
||||||
l_entries.append(l_cur_area_lines);
|
QStringList l_cur_area_lines = buildAreaList(i);
|
||||||
|
l_entries.append(l_cur_area_lines);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
sendServerMessage(l_entries.join("\n"));
|
sendServerMessage(l_entries.join("\n"));
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user