SV_RehashBans_f may be executed when the server isn't running (#785)
This commit is contained in:
parent
266357ffbe
commit
56f9f94ee7
|
|
@ -639,11 +639,6 @@ static void SV_RehashBans_f(void)
|
||||||
char *textbuf, *curpos, *maskpos, *newlinepos, *endpos;
|
char *textbuf, *curpos, *maskpos, *newlinepos, *endpos;
|
||||||
char filepath[MAX_QPATH];
|
char filepath[MAX_QPATH];
|
||||||
|
|
||||||
// make sure server is running
|
|
||||||
if ( !com_sv_running->integer ) {
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
serverBansCount = 0;
|
serverBansCount = 0;
|
||||||
|
|
||||||
if(!sv_banFile->string || !*sv_banFile->string)
|
if(!sv_banFile->string || !*sv_banFile->string)
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user