From f0202a67a5c87a97c662a921c7af27eea548677e Mon Sep 17 00:00:00 2001 From: David Anderson Date: Fri, 14 Sep 2007 02:14:35 +0000 Subject: [PATCH] fixed a stupid bug where flags were not stripped in BanClient() --HG-- extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%401430 --- core/smn_banning.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/core/smn_banning.cpp b/core/smn_banning.cpp index 6984e71e..87556ef8 100644 --- a/core/smn_banning.cpp +++ b/core/smn_banning.cpp @@ -263,25 +263,25 @@ static cell_t BanClient(IPluginContext *pContext, const cell_t *params) if (g_HL2.IsLANServer() || !pPlayer->IsAuthorized()) { ban_flags |= BANFLAG_IP; - ban_flags &= BANFLAG_AUTHID; + ban_flags &= ~BANFLAG_AUTHID; } else { ban_flags |= BANFLAG_AUTHID; - ban_flags &= BANFLAG_IP; + ban_flags &= ~BANFLAG_IP; } } else if ((ban_flags & BANFLAG_IP) == BANFLAG_IP) { ban_flags |= BANFLAG_IP; - ban_flags &= BANFLAG_AUTHID; + ban_flags &= ~BANFLAG_AUTHID; } else if ((ban_flags & BANFLAG_AUTHID) == BANFLAG_AUTHID) { if (pPlayer->IsAuthorized()) { ban_flags |= BANFLAG_AUTHID; - ban_flags &= BANFLAG_IP; + ban_flags &= ~BANFLAG_IP; } else {