1
0
Fork 0

Prepare some default values for the mp-dialog

properties
- name
- location
- online
are optional for the upcoming DNS based server discovery
This commit is contained in:
Torsten Dreyer 2016-11-09 12:51:23 +01:00
parent 2d66413085
commit 68f1dee97f

View file

@ -32,6 +32,10 @@
var i=0;
foreach (var s; serverlist.getChildren("server")) {
# prepare some default values
s.initNode("online", 1, "BOOL" );
s.initNode("location", "unknown", "STRING" );
s.initNode("name", s.getNode("hostname").getValue(), "STRING" );
if (!s.getNode("online").getBoolValue()) {
continue; # skip offline servers
}