]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/blob - qcsrc/server/command/banning.qh
ae16532ecfb37d77fbbc3e38ec32a814c0cfd6f0
[xonotic/xonotic-data.pk3dir.git] / qcsrc / server / command / banning.qh
1 #pragma once
2
3 // ====================================
4 //  Declarations for kick/ban commands
5 //  Last updated: December 29th, 2011
6 // =====================================
7
8 #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; }
9 #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;
10
11 // used by common/command/generic.qc:GenericCommand_dumpcommands to list all commands into a .txt file
12 void BanCommand_macro_write_aliases(float fh);
13
14 void BanCommand_macro_help();
15 float BanCommand_macro_usage(int argc);