]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/blob - qcsrc/server/command/banning.qh
Merge branch 'master' into Mario/bulldozer
[xonotic/xonotic-data.pk3dir.git] / qcsrc / server / command / banning.qh
1 #ifndef BANNING_H
2 #define BANNING_H
3
4 // ====================================
5 //  Declarations for kick/ban commands
6 //  Last updated: December 29th, 2011
7 // =====================================
8
9 #define GET_BAN_ARG(v, d) if (argc > reason_arg) { if ((v = stof(argv(reason_arg))) != 0) ++reason_arg; else v = d; } else { v = d; }
10 #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;
11
12 void Ban_KickBanClient(entity client, float bantime, float masksize, string reason);
13 void Ban_View();
14 float Ban_Insert(string ip, float bantime, string reason, float dosync);
15 float Ban_Delete(float i);
16
17 // used by common/command/generic.qc:GenericCommand_dumpcommands to list all commands into a .txt file
18 void BanCommand_macro_write_aliases(float fh);
19
20 void BanCommand_macro_help();
21 float BanCommand_macro_usage(float argc);
22
23 #endif