<commit_before>#include "macros.h"
/****************************************************************************************
@created     : 16 may 2015
@modified    : 06 september 2016
@author      : [utopia] Amaury
@description : none
*****************************************************************************************/
REQUIRE_CLIENT;

private "_allowedWeapons";
_allowedWeapons = param [0,[],[[]]];

{
 if(!((tolower _x) in _allowedWeapons)) then {
 _message = format["%1 (%2) : bad weapon %3.",name player,getplayeruid player,_x];
 [RISK_HIGH,"AC_BadWeapons.log",_message] remoteExecCall ["ac_fnc_log",EXEC_SERVER];
 player removeWeapon _x;
 [WEAPONS_ACTION] call ac_fnc_handleAction;
 };
}count weapons player;<commit_msg>action was not handled because wrong macro<commit_after>#include "macros.h"
/****************************************************************************************
@created     : 16 may 2015
@modified    : 11 september 2016
@author      : [utopia] Amaury
@description : none
*****************************************************************************************/
REQUIRE_CLIENT;

private ["_allowedWeapons","_player_weapons"];
_allowedWeapons = param [0,[],[[]]];

_player_weapons = weapons player apply {toLower _x};

{
 if !(_x in _allowedWeapons) then {
 _message = format["%1 (%2) : bad weapon %3.",name player,getplayeruid player,_x];
 [RISK_HIGH,"AC_BadWeapons.log",_message] remoteExecCall ["ac_fnc_log",EXEC_SERVER];
 player removeWeapon _x;
 [WEAPONSHOLDER_ACTION] call ac_fnc_handleAction;
 };
}foreach _player_weapons;
{'fraction_non_alphanumeric': 0.3324824505424378, 'fraction_numerical': 0.0204211869814933, 'mean_word_length': 7.808988764044944, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3734187', 'n_tokens_mistral': 487, 'n_tokens_neox': 433, 'n_words': 102}