mirror of
https://github.com/openmoh/openmohaa.git
synced 2025-04-28 21:57:57 +03:00
Add reason field to serverBan structure with defined maximum length
This commit is contained in:
parent
158ff62aaa
commit
1e2a331518
1 changed files with 4 additions and 3 deletions
|
@ -326,14 +326,15 @@ typedef struct {
|
||||||
} serverStatic_t;
|
} serverStatic_t;
|
||||||
|
|
||||||
#define SERVER_MAXBANS 1024
|
#define SERVER_MAXBANS 1024
|
||||||
|
#define MAX_REASON_LENGTH 128
|
||||||
|
|
||||||
// Structure for managing bans
|
// Structure for managing bans
|
||||||
typedef struct
|
typedef struct serverBan_s {
|
||||||
{
|
|
||||||
netadr_t ip;
|
netadr_t ip;
|
||||||
// For a CIDR-Notation type suffix
|
// For a CIDR-Notation type suffix
|
||||||
int subnet;
|
int subnet;
|
||||||
|
|
||||||
qboolean isexception;
|
qboolean isexception;
|
||||||
|
char reason[MAX_REASON_LENGTH];
|
||||||
} serverBan_t;
|
} serverBan_t;
|
||||||
|
|
||||||
//=============================================================================
|
//=============================================================================
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue