Skip to content

Commit

Permalink
Mute: Free SQLite handle on server close (#325)
Browse files Browse the repository at this point in the history
  • Loading branch information
wopox1337 committed Dec 18, 2023
1 parent 89c0623 commit bc8c652
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions cstrike/addons/amxmodx/scripting/ChatAdditions/CA_Mute.sma
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,11 @@ public plugin_init() {
CA_Log(logLevel_Debug, "[CA]: Mute initialized!")
}

public plugin_end() {
if (g_tuple != Empty_Handle)
SQL_FreeHandle(g_tuple)
}

Create_CVars() {
bind_pcvar_float(create_cvar("ca_mute_use_delay", "3",
.description = "How often players can use menu. (in seconds)",
Expand Down

0 comments on commit bc8c652

Please sign in to comment.