diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/crsm.cpp | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/src/crsm.cpp b/src/crsm.cpp index 32a03d1..0fc391d 100644 --- a/src/crsm.cpp +++ b/src/crsm.cpp @@ -2435,11 +2435,16 @@ CMD_FUNCTION_IMPL(host) { ScenarioSettings scen(args, client); QStringList argList = args.split(' ', QString::KeepEmptyParts); + QString ligaText = ""; if(argList.first().trimmed() == "--league") { argList.removeFirst(); scen.league = true; scen.name = argList.join(' '); + if(!Config.Hosting.DisableLeague) + { + ligaText = " mit Liga"; + } } if(!(scen.name = scenPath(scen.name)).isEmpty()) { @@ -2448,7 +2453,12 @@ CMD_FUNCTION_IMPL(host) userlist << scen; Stats.AddScenarioWish(client, scenarioFileName(scen.name)); - respond(client, "Szenario " + scen.name + (scen.league ? " mit Liga" : "") + " " + (Session.State == CRSMSession::None || (Session.Clonk.Clients.size() == 0 && !Session.UserWish) ? "wird jetzt gehostet" : "wurde der Warteschlange hinzugefügt") + ".\n"); + QString appendText = ""; + if(scen.league && Config.Hosting.DisableLeague) + { + appendText = " (Liga wurde am Server deaktiviert)"; + } + respond(client, "Szenario " + scen.name + " " + (Session.State == CRSMSession::None || (Session.Clonk.Clients.size() == 0 && !Session.UserWish) ? "wird jetzt" + ligaText + " gehostet" : "wurde der Warteschlange" + ligaText + " hinzugefügt") + "." + appendText + "\n"); if(userlist.length() == 1 && !Session.UserWish && Session.State == CRSMSession::Lobby && Session.Clonk.Clients.size() > 0) respond(client, "Überrede alle Spieler zu leaven und dein Wunsch wird sofort gehostet ;-)\n"); else if(Session.State == CRSMSession::None) |
