summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/CRSMConfig.hpp2
-rw-r--r--src/crsm.cpp4
2 files changed, 6 insertions, 0 deletions
diff --git a/src/CRSMConfig.hpp b/src/CRSMConfig.hpp
index dd59259..9845ef0 100644
--- a/src/CRSMConfig.hpp
+++ b/src/CRSMConfig.hpp
@@ -31,6 +31,7 @@ public:
List(String) IgnoreFolders = {"Network", "Records.c4f", "Savegames.c4f"};
Integer EmptyTimer = 60;
+ Integer JoinStopCountDown = 20;
struct {
Integer Interval = 10;
@@ -136,6 +137,7 @@ public:
ConfigVal(Clonk.Server.Config),
ConfigVal(Clonk.Server.Executable),
ConfigVal(Clonk.Server.EmptyTimer),
+ ConfigVal(Clonk.Server.JoinStopCountDown),
ConfigVal(Clonk.Server.IgnoreFolders),
ConfigVal(Clonk.Server.Watchdog.Interval),
diff --git a/src/crsm.cpp b/src/crsm.cpp
index 3a79023..22c8908 100644
--- a/src/crsm.cpp
+++ b/src/crsm.cpp
@@ -299,6 +299,10 @@ void CRSM::clientConnected(const ClientInfo& client)
{
sendIrcMessage("[Clonk] " + client.toString() + " verbunden.", Config.IRC.IngameChannel, false, false);
}
+ if(Session.CountDown != -1 && Session.CountDown <= Config.Clonk.Server.JoinStopCountDown)
+ {
+ control.abortCountdown();
+ }
}
void CRSM::clientRemoved(const ClientInfo& client, const QString& reason)