summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarkus Mittendrein <git@maxmitti.tk>2015-11-03 13:47:47 +0100
committerMarkus Mittendrein <git@maxmitti.tk>2015-11-03 14:35:21 +0100
commitc1158aa594146eb90fd35f7a1f57924df218b8fc (patch)
tree9eaee5500e836ee151741e61e7795583cb53bca1
parentfc2069566adc4329743c88ca46b4bfbab3a6f821 (diff)
downloadmanager-c1158aa594146eb90fd35f7a1f57924df218b8fc.tar.gz
manager-c1158aa594146eb90fd35f7a1f57924df218b8fc.zip
Don't allow getting admin when there is no hosted game
-rw-r--r--src/crsm.cpp5
1 files changed, 5 insertions, 0 deletions
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)
{