diff options
Diffstat (limited to 'engine/sv_filter.h')
| -rw-r--r-- | engine/sv_filter.h | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/engine/sv_filter.h b/engine/sv_filter.h new file mode 100644 index 0000000..e53b5cc --- /dev/null +++ b/engine/sv_filter.h @@ -0,0 +1,36 @@ +//========= Copyright Valve Corporation, All rights reserved. ============// +// +// Purpose: +// +// $Workfile: $ +// $Date: $ +// +//----------------------------------------------------------------------------- +// $Log: $ +// +// $NoKeywords: $ +//=============================================================================// +#if !defined( SV_FILTER_H ) +#define SV_FILTER_H +#ifdef _WIN32 +#pragma once +#endif + +#include "utlvector.h" +#include "userid.h" +#include "vfilter.h" // Renamed to avoid conflict with Microsoft's filter.h + +void Filter_Init( void ); +void Filter_Shutdown( void ); + +bool Filter_ShouldDiscardID( unsigned int userid ); +bool Filter_ShouldDiscard( const netadr_t& adr ); +void Filter_SendBan( const netadr_t& adr ); +const char *GetUserIDString( const USERID_t& id ); + +bool Filter_IsUserBanned( const USERID_t& userid ); + +extern CUtlVector< ipfilter_t > g_IPFilters; +extern CUtlVector< userfilter_t > g_UserFilters; + +#endif // SV_FILTER_H |