Software /
code /
prosody-modules
Diff
mod_anti_spam/trie.lib.lua @ 6208:e20901443eae draft
Merge
author | Trần H. Trung <xmpp:trần.h.trung@trung.fun> |
---|---|
date | Mon, 17 Mar 2025 23:42:11 +0700 |
parent | 5883:259ffdbf8906 |
child | 6211:750d64c47ec6 |
line wrap: on
line diff
--- a/mod_anti_spam/trie.lib.lua Wed Feb 26 19:36:35 2025 +0700 +++ b/mod_anti_spam/trie.lib.lua Mon Mar 17 23:42:11 2025 +0700 @@ -1,4 +1,4 @@ -local bit = require "prosody.util.bitcompat"; +local bit = require "util.bitcompat"; local trie_methods = {}; local trie_mt = { __index = trie_methods }; @@ -120,7 +120,7 @@ end end -function trie_methods:has_ip(item) +function trie_methods:contains_ip(item) item = item.packed; local node = self.root; local len = #item;