From 7a9b22420aa53f74d8ad27efb095806ed0bd6914 Mon Sep 17 00:00:00 2001 From: Rudolf Polzer Date: Mon, 4 Jun 2012 11:01:54 +0200 Subject: [PATCH] block rcon in non-dedicated servers --- netconn.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/netconn.c b/netconn.c index 395f6d33..f30186c5 100755 --- 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, ' '))) { -- 2.39.2