From 99eeb53fcb714d3028f1ddf8c3343c114920fa38 Mon Sep 17 00:00:00 2001 From: Markus Mittendrein Date: Sat, 23 Jul 2016 16:10:14 +0200 Subject: Stop AfkAdminTimer when admin gets changed --- src/crsm.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/crsm.cpp') diff --git a/src/crsm.cpp b/src/crsm.cpp index 5c04cec..3fc66aa 100644 --- a/src/crsm.cpp +++ b/src/crsm.cpp @@ -1618,6 +1618,8 @@ void CRSM::setIngameAdmin(const ClientInfo &client, const QString& newAdmin) Session.Clonk.Admin = foundClient; } } + afkAdminTimer.stop(); + Session.AfkAdmin = false; respond(client, Session.Clonk.Admin.toString() + " wurde als Rundenadmin eingetragen.\n"); } -- cgit v1.2.3-54-g00ecf