]> PatchyGit - patchyircd.git/commitdiff
lua: fix spamlevel global decl
authorEgor <egor@patchysicp.xyz>
Thu, 12 Feb 2026 15:29:32 +0000 (17:29 +0200)
committerEgor <egor@patchysicp.xyz>
Thu, 12 Feb 2026 15:29:32 +0000 (17:29 +0200)
lua/spam.lua

index 5877341..e52f500 100644 (file)
@@ -1,7 +1,7 @@
 -- Copyright (c) 2024-2025 Egor
 -- SPDX-License-Identifier: GPL-2.0-or-later
 -- spam filtering
-global_once(spamlevel, 0)
+global_once("spamlevel", 0)
 local function ascii(txt)
        txt = txt:gsub("[^ -~]", ""):lower()
        return txt