From f2d63c16330971e0264b3618cafc0ac923c1dbb5 Mon Sep 17 00:00:00 2001 From: Thilo Schulz Date: Thu, 21 May 2009 20:52:35 +0000 Subject: [PATCH] More commentary to source code --- code/server/sv_ccmds.c | 26 +++++++++++++++++++++++++- 1 file changed, 25 insertions(+), 1 deletion(-) diff --git a/code/server/sv_ccmds.c b/code/server/sv_ccmds.c index d54fe6e5..7d879603 100644 --- a/code/server/sv_ccmds.c +++ b/code/server/sv_ccmds.c @@ -595,7 +595,7 @@ static void SV_RehashBans_f(void) /* ================== -SV_BanAddr_f +SV_AddBanToList Ban a user from being able to play on this server based on his ip address. ================== @@ -715,6 +715,14 @@ static void SV_AddBanToList(qboolean isexception) serverBansCount++; } +/* +================== +SV_DelBanFromList + +Remove a ban or an exception from the list. +================== +*/ + static void SV_DelBanFromList(qboolean isexception) { int index, count, todel; @@ -774,6 +782,14 @@ static void SV_DelBanFromList(qboolean isexception) } } +/* +================== +SV_ListBans_f + +List all bans and exceptions on console +================== +*/ + static void SV_ListBans_f(void) { int index, count; @@ -805,6 +821,14 @@ static void SV_ListBans_f(void) } } +/* +================== +SV_FlushBans_f + +Delete all bans and exceptions. +================== +*/ + static void SV_FlushBans_f(void) { fileHandle_t blankf;