summaryrefslogtreecommitdiff
path: root/engine/sv_filter.h
blob: e53b5ccb6a77ea32e830d630e31ce527318be37b (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
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