+ string msg = GetVersionMessage(hostversion, version_mismatch, version_check);
+
+ msg = strcat(msg, "\n\n", _("Gametype:"), " ^1", MapInfo_Type_ToText(gametype), "\n");
+
+ msg = strcat(msg, "\n", _("Map:"), " ^2");
+ if (world.message == "")
+ msg = strcat(msg, mi_shortname, "\n");
+ else
+ {
+ int i = strstrofs(world.message, " by ", 0); // matches _MapInfo_Generate()
+ string longname = i >= 0 ? substring(world.message, 0, i) : world.message;
+ msg = strcat(msg, (strcasecmp(longname, mi_shortname) ? strcat(mi_shortname, " ^7// ^2") : ""), longname, "\n");
+ }
+
+ if (srv_minplayers || srv_maxplayers)
+ {
+ msg = strcat(msg, "\n", _("This match supports"), " ^5");
+ if (srv_minplayers == srv_maxplayers)
+ msg = strcat(msg, sprintf(_("%d players"), srv_maxplayers), "\n");
+ else if (srv_minplayers && srv_maxplayers)
+ msg = strcat(msg, sprintf(_("%d to %d players"), srv_minplayers, srv_maxplayers), "\n");
+ else if (srv_maxplayers)
+ msg = strcat(msg, sprintf(_("%d players maximum"), srv_maxplayers), "\n");
+ else
+ msg = strcat(msg, sprintf(_("%d players minimum"), srv_minplayers), "\n");
+ }