summaryrefslogtreecommitdiff
path: root/src/game/g_admin.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/game/g_admin.h')
-rw-r--r--src/game/g_admin.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/game/g_admin.h b/src/game/g_admin.h
index f3ef756b..34ada092 100644
--- a/src/game/g_admin.h
+++ b/src/game/g_admin.h
@@ -101,8 +101,13 @@ typedef struct g_admin_admin
g_admin_admin_t;
#define ADDRLEN 16
+/*
+addr_ts are passed as "arg" to admin_search for IP address matching
+admin_search prints (char *)arg, so the stringified address needs to be first
+*/
typedef struct
{
+ char str[ 44 ];
enum
{
IPv4,
@@ -110,8 +115,8 @@ typedef struct
} type;
byte addr[ ADDRLEN ];
int mask;
- char str[ 44 ];
} addr_t;
+
typedef struct g_admin_ban
{
struct g_admin_ban *next;