Modified source engine (2017) developed by valve and leaked in 2020. Not for commercial purporses
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

36 lines
961 B

//========= 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