X-Git-Url: https://git.xonotic.org/?a=blobdiff_plain;f=qcsrc%2Fserver%2Fcommand%2Fbanning.qc;h=c29c47c0e8aada55583752c0c9c1a66484d05190;hb=cde1a828578994d75c4aebeb7beb4d2350688507;hp=933eb3c83d8e85fc59ebb825136aa0e641d968cf;hpb=2383cf4e8e263782677201fe93423e1dd19367b2;p=xonotic%2Fxonotic-data.pk3dir.git diff --git a/qcsrc/server/command/banning.qc b/qcsrc/server/command/banning.qc index 933eb3c83..c29c47c0e 100644 --- a/qcsrc/server/command/banning.qc +++ b/qcsrc/server/command/banning.qc @@ -133,13 +133,13 @@ void BanCommand_mute(int request, int argc, string command) if (accepted > 0) { string theid = ""; - if(!PlayerInIPList(client, autocvar_g_muteban_list)) + if(!PlayerInIPList(client, autocvar_g_chatban_list)) theid = cons(theid, client.netaddress); - if(!PlayerInIDList(client, autocvar_g_muteban_list)) + if(!PlayerInIDList(client, autocvar_g_chatban_list)) theid = cons(theid, client.crypto_idfp); CS(client).muted = true; LOG_INFO(strcat("Mute-banning player ", GetCallerName(client), " (", argv(1), ").")); - cvar_set("g_muteban_list", cons(autocvar_g_muteban_list, theid)); + cvar_set("g_chatban_list", cons(autocvar_g_chatban_list, theid)); return; } @@ -156,7 +156,7 @@ void BanCommand_mute(int request, int argc, string command) { LOG_HELP("Usage:^3 sv_cmd mute "); LOG_HELP(" is the entity number or name of the player to mute."); - LOG_HELP("See also: ^2unmute, g_muteban_list^7"); + LOG_HELP("See also: ^2unmute, g_chatban_list^7"); return; } } @@ -267,14 +267,14 @@ void BanCommand_unmute(int request, int argc) if (accepted > 0) { string tmp_string = ""; - FOREACH_WORD(autocvar_g_muteban_list, it != client.netaddress, + FOREACH_WORD(autocvar_g_chatban_list, it != client.netaddress, { if(client.crypto_idfp && it == substring(client.crypto_idfp, 0, strlen(it))) continue; tmp_string = cons(tmp_string, it); }); - cvar_set("g_muteban_list", tmp_string); + cvar_set("g_chatban_list", tmp_string); LOG_INFO(strcat("Unmuting player ", GetCallerName(client), " (", original_arg, ").")); CS(client).muted = false; @@ -293,7 +293,7 @@ void BanCommand_unmute(int request, int argc) { LOG_HELP("Usage:^3 sv_cmd unmute "); LOG_HELP(" is the entity number or name of the player to unmute."); - LOG_HELP("See also: ^2mute, g_muteban_list^7"); + LOG_HELP("See also: ^2mute, g_chatban_list^7"); return; } }