mirror of
https://github.com/openmoh/openmohaa.git
synced 2025-04-28 13:47:58 +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;
|
||||
|
||||
#define SERVER_MAXBANS 1024
|
||||
#define MAX_REASON_LENGTH 128
|
||||
|
||||
// Structure for managing bans
|
||||
typedef struct
|
||||
{
|
||||
typedef struct serverBan_s {
|
||||
netadr_t ip;
|
||||
// For a CIDR-Notation type suffix
|
||||
int subnet;
|
||||
|
||||
qboolean isexception;
|
||||
char reason[MAX_REASON_LENGTH];
|
||||
} serverBan_t;
|
||||
|
||||
//=============================================================================
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue