fixed a stupid bug where flags were not stripped in BanClient()
--HG-- extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%401430
This commit is contained in:
parent
74b23aebfe
commit
f0202a67a5
@ -263,25 +263,25 @@ static cell_t BanClient(IPluginContext *pContext, const cell_t *params)
|
|||||||
if (g_HL2.IsLANServer() || !pPlayer->IsAuthorized())
|
if (g_HL2.IsLANServer() || !pPlayer->IsAuthorized())
|
||||||
{
|
{
|
||||||
ban_flags |= BANFLAG_IP;
|
ban_flags |= BANFLAG_IP;
|
||||||
ban_flags &= BANFLAG_AUTHID;
|
ban_flags &= ~BANFLAG_AUTHID;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
ban_flags |= BANFLAG_AUTHID;
|
ban_flags |= BANFLAG_AUTHID;
|
||||||
ban_flags &= BANFLAG_IP;
|
ban_flags &= ~BANFLAG_IP;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else if ((ban_flags & BANFLAG_IP) == BANFLAG_IP)
|
else if ((ban_flags & BANFLAG_IP) == BANFLAG_IP)
|
||||||
{
|
{
|
||||||
ban_flags |= BANFLAG_IP;
|
ban_flags |= BANFLAG_IP;
|
||||||
ban_flags &= BANFLAG_AUTHID;
|
ban_flags &= ~BANFLAG_AUTHID;
|
||||||
}
|
}
|
||||||
else if ((ban_flags & BANFLAG_AUTHID) == BANFLAG_AUTHID)
|
else if ((ban_flags & BANFLAG_AUTHID) == BANFLAG_AUTHID)
|
||||||
{
|
{
|
||||||
if (pPlayer->IsAuthorized())
|
if (pPlayer->IsAuthorized())
|
||||||
{
|
{
|
||||||
ban_flags |= BANFLAG_AUTHID;
|
ban_flags |= BANFLAG_AUTHID;
|
||||||
ban_flags &= BANFLAG_IP;
|
ban_flags &= ~BANFLAG_IP;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user