]> git.rm.cloudns.org Git - xonotic/darkplaces.git/commitdiff
block rcon in non-dedicated servers
authorRudolf Polzer <divverent@alientrap.org>
Mon, 4 Jun 2012 09:01:54 +0000 (11:01 +0200)
committerRudolf Polzer <divverent@alientrap.org>
Mon, 4 Jun 2012 09:01:54 +0000 (11:01 +0200)
netconn.c

index 395f6d3303219460de5a8199cc6dd3fc58bb3cb0..f30186c56246dbce6b9402d19dce953f12c1979e 100755 (executable)
--- a/netconn.c
+++ b/netconn.c
@@ -2623,6 +2623,11 @@ static const char *RCon_Authenticate(lhnetaddress_t *peeraddress, const char *pa
        qboolean have_usernames = false;
        char vabuf[1024];
 
+#ifdef ANTICHEAT
+       if(cls.state != ca_dedicated)
+               return NULL;
+#endif
+
        userpass_start = rcon_password.string;
        while((userpass_end = strchr(userpass_start, ' ')))
        {