37 lines
928 B
C
37 lines
928 B
C
|
//========= Copyright <20> 1996-2005, 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 "ipuserfilter.h"
|
|||
|
|
|||
|
void Filter_Init( void );
|
|||
|
void Filter_Shutdown( void );
|
|||
|
|
|||
|
bool Filter_ShouldDiscardID( unsigned int userid );
|
|||
|
bool Filter_ShouldDiscard( const ns_address& adr );
|
|||
|
void Filter_SendBan( const ns_address& 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
|