diff options
| author | FluorescentCIAAfricanAmerican <[email protected]> | 2020-04-22 12:56:21 -0400 |
|---|---|---|
| committer | FluorescentCIAAfricanAmerican <[email protected]> | 2020-04-22 12:56:21 -0400 |
| commit | 3bf9df6b2785fa6d951086978a3e66f49427166a (patch) | |
| tree | 2c0f1f0c63c4832882bc93814ebd2c2b1c6224e5 /engine/sv_filter.h | |
| download | archived-source-engine-2018-hl2-src-master.tar.xz archived-source-engine-2018-hl2-src-master.zip | |
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 |