Skip to content
This repository was archived by the owner on May 16, 2020. It is now read-only.

Commit 13bdeb9

Browse files
committed
server: fix bots affected by limit of sv_ipMaxClients value
1 parent 055b07e commit 13bdeb9

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/server/sv_client.c

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -256,6 +256,12 @@ static qboolean SV_isValidClient(netadr_t from, const char *userinfo)
256256
return qfalse;
257257
}
258258

259+
// server bots are always valid (with valid userinfo)
260+
if (from.type == NA_BOT)
261+
{
262+
return qtrue;
263+
}
264+
259265
if (SV_TempBanIsBanned(from))
260266
{
261267
NET_OutOfBandPrint(NS_SERVER, from, "print\n%s\n", sv_tempbanmessage->string);

0 commit comments

Comments
 (0)