X-Git-Url: http://git.xonotic.org/?p=xonotic%2Fxonotic-data.pk3dir.git;a=blobdiff_plain;f=qcsrc%2Fserver%2Fcommand%2Fcommon.qc;h=710c3889f345f744ed461c334d3cf3e44a9e54ad;hp=0f59802dd5960e3bdfb72230a7d2d877584ee00a;hb=67610c5b92e218cc245c040209c1a79ab6b02758;hpb=2628347ca767dc7d17b5db20ed6c786922c15167 diff --git a/qcsrc/server/command/common.qc b/qcsrc/server/command/common.qc index 0f59802dd..710c3889f 100644 --- a/qcsrc/server/command/common.qc +++ b/qcsrc/server/command/common.qc @@ -1,10 +1,11 @@ #include "common.qh" +#include #include +#include #include #include #include -#include #include #include "common.qh" @@ -31,7 +32,7 @@ string GetCommandPrefix(entity caller) // if client return player nickname, or if server return admin nickname string GetCallerName(entity caller) { - if (caller) return playername(caller, false); + if (caller) return playername(caller.netname, caller.team, false); else return ((autocvar_sv_adminnick != "") ? autocvar_sv_adminnick : "SERVER ADMIN"); // autocvar_hostname } @@ -720,7 +721,7 @@ void CommonCommand_timeout(int request, entity caller) // DEAR GOD THIS COMMAND { print_to(caller, "^7Error: You can not call a timeout while a vote is active."); } - else if (warmup_stage && !g_warmup_allow_timeout) + else if (warmup_stage && !autocvar_g_warmup_allow_timeout) { print_to(caller, "^7Error: You can not call a timeout in warmup-stage."); }