misc fixes

git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@5100 fc73d0e0-1445-4013-8a0c-d673dee63da5
This commit is contained in:
Spoike 2017-05-10 04:32:49 +00:00
parent 1f729f4afd
commit 493d66b832
6 changed files with 32 additions and 12 deletions

View file

@ -670,7 +670,7 @@ int IWebAuthorize(const char *name, const char *password)
rankinfo_t info;
if (!id)
{
if (!sv_readlevel.value && !*name || !stricmp(name, "anonymous"))
if (!sv_readlevel.value && (!*name || !stricmp(name, "anonymous")))
return IWEBACC_READ; //read only anywhere
return 0;
}