]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/blob - qcsrc/server/command/banning.qh
Merge remote branch 'origin/master' into samual/updatecommands
[xonotic/xonotic-data.pk3dir.git] / qcsrc / server / command / banning.qh
1 // ====================================
2 //  Declarations for kick/ban commands
3 //  Last updated: December 29th, 2011
4 // =====================================
5
6 #define GET_BAN_ARG(v,d) if((argc > reason_arg) && ((v = stof(argv(reason_arg))) != 0)) ++reason_arg; else v = d
7 #define GET_BAN_REASON(v,d) if(argc > reason_arg) v = substring(command, argv_start_index(reason_arg), strlen(command) - argv_start_index(reason_arg)); else v = d
8
9 void Ban_KickBanClient(entity client, float bantime, float masksize, string reason);
10 void Ban_View();
11 float Ban_Insert(string ip, float bantime, string reason, float dosync);
12 float Ban_Delete(float i);
13
14 // used by common/command/generic.qc:GenericCommand_dumpcommands to list all commands into a .txt file
15 void BanCommand_macro_write_aliases(float fh)