summaryrefslogtreecommitdiff
path: root/src/game/g_admin.h
diff options
context:
space:
mode:
authorM. Kristall <mkpdev@gmail.com>2009-10-06 03:42:10 +0000
committerTim Angus <tim@ngus.net>2013-01-03 00:16:40 +0000
commit4c26128cbf19552bb3939e0b1b0a518a793e946f (patch)
tree0542e1cd5153b7e8bbfd00c3b3ea7620f7a78cd4 /src/game/g_admin.h
parenta4478a4d40db8d11ce0ac54490565abeb65c3b5f (diff)
* (bug 4071) subnet bans
Allow banning and namelog searching by IP address in CIDR notation Banning a range of addresses will immediately kick all players in that range Admins with IMMUNITY flag can connect even if their IP address is banned admin.dat files relying on substring matching will have to be updated
Diffstat (limited to 'src/game/g_admin.h')
-rw-r--r--src/game/g_admin.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/game/g_admin.h b/src/game/g_admin.h
index 5ac3c668..7917b2b3 100644
--- a/src/game/g_admin.h
+++ b/src/game/g_admin.h
@@ -109,7 +109,7 @@ typedef struct g_admin_ban
{
char name[ MAX_NAME_LENGTH ];
char guid[ 33 ];
- char ip[ 40 ];
+ char ip[ 44 ]; // big enough for IPv6 CIDR notation (without brackets)
char reason[ MAX_ADMIN_BAN_REASON ];
char made[ 18 ]; // big enough for strftime() %c
int expires;
@@ -136,7 +136,7 @@ typedef struct g_admin_namelog
}
g_admin_namelog_t;
-qboolean G_admin_ban_check( char *userinfo, char *reason, int rlen );
+qboolean G_admin_ban_check( gentity_t *ent, char *reason, int rlen );
qboolean G_admin_cmd_check( gentity_t *ent, qboolean say );
qboolean G_admin_readconfig( gentity_t *ent, int skiparg );
qboolean G_admin_permission( gentity_t *ent, const char *flag );