diff options
Diffstat (limited to 'src/game/g_admin.h')
-rw-r--r-- | src/game/g_admin.h | 60 |
1 files changed, 60 insertions, 0 deletions
diff --git a/src/game/g_admin.h b/src/game/g_admin.h index 6e6e57a..d46b5fa 100644 --- a/src/game/g_admin.h +++ b/src/game/g_admin.h @@ -44,6 +44,10 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA #define MAX_ADMIN_COMMANDS 64 #define MAX_ADMIN_CMD_LEN 20 #define MAX_ADMIN_BAN_REASON 50 +#define MAX_ADMIN_REPORTS 1024 +#define MAX_ADMIN_REPORTS_REASON 256 +#define MAX_ADMIN_ARCHIVES 1024 +#define MAX_ADMIN_ARCHIVES_REASON 256 #define MAX_ADMIN_BANSUSPEND_DAYS 14 @@ -93,12 +97,18 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA #define ADMF_BAN_IMMUNITY "BANIMMUNITY" +#define ADMF_FULLRLIST "FULLRLIST" +#define ADMF_NOREPORTLIMIT "NOREPORTLIMIT" +#define ADMF_SEESINCOGNITO "SEESINCOGNITO" + #define ADMF_NO_CHAT ".NOCHAT" #define ADMF_NO_VOTE ".NOVOTE" #define MAX_ADMIN_LISTITEMS 20 #define MAX_ADMIN_SHOWBANS 10 +#define MAX_ADMIN_SHOWREPORTS 5 + #define MAX_ADMIN_MAPLOG_LENGTH 5 // important note: QVM does not seem to allow a single char to be a @@ -197,6 +207,46 @@ typedef struct g_admin_tklog } g_admin_tklog_t; +typedef struct g_admin_report +{ + char name[ 128 ]; + char guid[ 33 ]; + char ip[ 20 ]; + char reason[ MAX_ADMIN_REPORTS_REASON ]; + char map[ 50 ]; + char time[ 48 ]; + int players; + char admins[ 256 ]; + char rep[ 70 ]; + char repIP[ 20 ]; + char repGUID[ 33 ]; + int level; + char note[ MAX_ADMIN_REPORTS_REASON ]; + int expires; + int closed; +} +g_admin_report_t; + +typedef struct g_admin_archive +{ + char name[ 128 ]; + char guid[ 33 ]; + char ip[ 20 ]; + char reason[ MAX_ADMIN_REPORTS_REASON ]; + char map[ 50 ]; + char time[ 48 ]; + int players; + char admins[ 256 ]; + char rep[ 70 ]; + char repIP[ 20 ]; + char repGUID[ 33 ]; + int level; + char note[ MAX_ADMIN_REPORTS_REASON ]; + int expires; +} +g_admin_archive_t; + + qboolean G_admin_ban_check( char *userinfo, char *reason, int rlen ); qboolean G_admin_cmd_check( gentity_t *ent, qboolean say ); qboolean G_admin_readconfig( gentity_t *ent, int skiparg ); @@ -285,6 +335,14 @@ qboolean G_admin_slap( gentity_t *ent, int skiparg ); qboolean G_admin_drop( gentity_t *ent, int skiparg ); qboolean G_admin_bubble( gentity_t *ent, int skiparg ); +qboolean G_admin_report( gentity_t *ent, int skiparg ); +qboolean G_admin_rlist( gentity_t *ent, int skiparg ); +qboolean G_admin_rban( gentity_t *ent, int skiparg ); +qboolean G_admin_rarclist( gentity_t *ent, int skiparg ); +qboolean G_admin_rclose( gentity_t *ent, int skiparg ); +qboolean G_admin_rpurge( gentity_t *ent, int skiparg ); +qboolean G_admin_rnote( gentity_t *ent, int skiparg ); + void G_admin_print( gentity_t *ent, char *m ); void G_admin_buffer_print( gentity_t *ent, char *m ); void G_admin_buffer_begin( void ); @@ -294,4 +352,6 @@ void G_admin_duration( int secs, char *duration, int dursize ); void G_admin_cleanup( void ); void G_admin_namelog_cleanup( void ); +void G_admin_report_check( int clientNum ); + #endif /* ifndef _G_ADMIN_H */ |