From c1158aa594146eb90fd35f7a1f57924df218b8fc Mon Sep 17 00:00:00 2001 From: Markus Mittendrein Date: Tue, 3 Nov 2015 13:47:47 +0100 Subject: Don't allow getting admin when there is no hosted game --- src/crsm.cpp | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src') diff --git a/src/crsm.cpp b/src/crsm.cpp index 05fca25..572eb11 100644 --- a/src/crsm.cpp +++ b/src/crsm.cpp @@ -1853,6 +1853,11 @@ CMD_FUNCTION_IMPL(passToClonk) } CMD_FUNCTION_IMPL(admin) + if(Session.State == CRSMSession::None) + { + respond(client, "Solange nichts gehostet ist, kann es keinen Rundenadmin geben.\n"); + return RightsFail; + } ClientInfo *interfaceAdminPtr; switch(client.interface) { -- cgit v1.2.3-54-g00ecf