Team Fortress 2 Source Code as on 22/4/2020
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.

35 lines
619 B

  1. //========= Copyright Valve Corporation, All rights reserved. ============//
  2. //
  3. // Purpose:
  4. //
  5. // $NoKeywords: $
  6. //
  7. //=============================================================================//
  8. // filter.h
  9. #if !defined( FILTER_H )
  10. #define FILTER_H
  11. #ifdef _WIN32
  12. #pragma once
  13. #endif
  14. #include "userid.h"
  15. typedef struct
  16. {
  17. unsigned mask;
  18. unsigned compare;
  19. float banEndTime; // 0 for permanent ban
  20. float banTime;
  21. } ipfilter_t;
  22. typedef struct
  23. {
  24. USERID_t userid;
  25. float banEndTime;
  26. float banTime;
  27. } userfilter_t;
  28. #define MAX_IPFILTERS 32768
  29. #define MAX_USERFILTERS 32768
  30. #endif // FILTER_H