Skip to content

Commit bacf1ee

Browse files
Add gag removal logging
This PR adds logging for gag removal actions. Closes #344
1 parent 8784c1e commit bacf1ee

File tree

1 file changed

+6
-0
lines changed
  • cstrike/addons/amxmodx/scripting/ChatAdditions

1 file changed

+6
-0
lines changed

cstrike/addons/amxmodx/scripting/ChatAdditions/CA_Gag.sma

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1677,6 +1677,12 @@ static bool: Gag_Remove(const id, const target) {
16771677

16781678
show_activity_ex(id, fmt("%n", id), "%l", "Gag_AdminUngagPlayer", g_currentGags[target][gd_name])
16791679

1680+
CA_Log(logLevel_Info, "Gag: ^"%n^" remove gag from ^"%n^" (type:^"%s^") (time:^"%s^") (reason:^"%s^")", \
1681+
id, target, bits_to_flags(gag_flags_s: g_currentGags[target][gd_reason][r_flags]), \
1682+
Get_TimeString_seconds(LANG_PLAYER, g_currentGags[target][gd_reason][r_time]), \
1683+
g_currentGags[target][gd_reason][r_name] \
1684+
)
1685+
16801686
GagData_Reset(g_adminTempData[id])
16811687
GagData_Reset(g_currentGags[target])
16821688

0 commit comments

Comments
 (0)