aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/mod_blocklist.lua
Commit message (Collapse)AuthorAgeFilesLines
* plugins: Use integer config API with interval specification where sensibleKim Alvefur2023-07-171-1/+1
| | | | | | | Many of these fall into a few categories: - util.cache size, must be >= 1 - byte or item counts that logically can't be negative - port numbers that should be in 1..0xffff
* plugins: Prefix module imports with prosody namespaceKim Alvefur2023-03-241-6/+6
|
* mod_blocklist: Add option 'migrate_legacy_blocking' to disable migration ↵Kim Alvefur2022-10-171-0/+8
| | | | | | | | | | | | from mod_privacy Tiny performance improvement for new users by skipping this check. Most servers should have gone trough the migration for all active users long ago. As a suitable first step of phasing out this code, we make it possible to disable it first. Later it can be disabled by default, before finally the code is deleted.
* plugins: Remove tostring call from loggingKim Alvefur2019-07-301-1/+1
| | | | | | Taken care of by loggingmanager now Mass-rewrite using lua pattern like `tostring%b()`
* mod_blocklist: Add comment to clarify some logicKim Alvefur2019-06-201-0/+1
|
* Merge 0.11->trunkKim Alvefur2019-06-201-0/+8
|\
| * mod_blocklist: Trigger resend of presence when unblocking a contact (fixes ↵Kim Alvefur2019-06-201-0/+8
| | | | | | | | #1380)
* | Fix various spelling mistakes [codespell]Kim Alvefur2019-05-031-1/+1
|/
* mod_blocklist: Store timestamp of blocking to allow age to be determinedKim Alvefur2018-02-151-5/+7
|
* mod_blocklist: Allow mod_presence to handle subscription stanzas before ↵Kim Alvefur2018-04-061-6/+3
| | | | bouncing outgoing presence (fixes #575)
* mod_blocklist: Drop messages to existing full JIDs in order to prevent ↵Kim Alvefur2017-09-271-2/+7
| | | | issues with MUC PMs, fixes #690
* mod_blocklist: Use local variable [luacheck]Kim Alvefur2017-04-011-1/+1
|
* mod_blocklist: Split long line [luacheck]Kim Alvefur2017-03-091-1/+4
|
* mod_blocklist: Check first level cache before calling blocklist getterKim Alvefur2016-12-051-6/+3
|
* mod_blocklist: Simplify loop with ipairsKim Alvefur2016-12-081-4/+2
|
* mod_blocklist: Remove one indentation levelKim Alvefur2016-12-051-12/+10
|
* mod_blocklist: Return early from migration if no valid privacy list data is ↵Kim Alvefur2016-12-051-7/+9
| | | | found
* mod_blocklist: Make the 'false' metadata field a table so we can store ↵Kim Alvefur2016-12-081-4/+9
| | | | timestamps and other useful data
* mod_blocklist: Mention issue numbersKim Alvefur2016-08-201-3/+4
|
* mod_blocklist: Decrease priority of iq hooks to ease handling by other modulesKim Alvefur2016-08-201-3/+3
|
* mod_blocklist: Clear second level cache correctly on user deletionKim Alvefur2016-01-111-1/+1
|
* mod_blocklist: Update Copyright headerKim Alvefur2015-12-061-1/+1
|
* mod_blocklist: Skip creating some tables and some processing if unblockingKim Alvefur2015-12-061-8/+9
|
* mod_blocklist: When blocking someone who sent a subscription request, forget ↵Kim Alvefur2015-12-061-1/+20
| | | | that request since the user would be unable to deny it while blocked (Fixes #574)
* mod_blocklist: Restructure how we keep track of where to send unavailable ↵Kim Alvefur2015-12-061-3/+13
| | | | presence
* mod_blocklist: session[username] can't possibly be unset if that user is ↵Kim Alvefur2015-12-061-10/+9
| | | | sending queries
* mod_blocklist: Add comments describing some variablesKim Alvefur2015-12-061-2/+2
|
* mod_blocklist: Expand comments on caching of blocklistsKim Alvefur2015-12-061-3/+9
|
* mod_blocklist: Add comment about compliance issue #575Kim Alvefur2015-12-061-0/+3
|
* mod_blocklist: Rename variable for clarityKim Alvefur2015-12-061-5/+5
|
* mod_blocklist: Clear second level cache when user is deletedKim Alvefur2015-12-051-0/+1
|
* mod_blocklist: Use util.cache to manage how many users blocklists are kept ↵Kim Alvefur2015-11-251-7/+13
| | | | in memory
* mod_blocklist: Explicitly halt event propagation after returning a reply ↵Kim Alvefur2015-09-161-6/+12
| | | | (send returns nil sometimes)
* mod_blocklist: Some cleanup [luacheck]Kim Alvefur2015-04-251-9/+8
|
* mod_blocklist: Fix importKim Alvefur2014-12-091-1/+1
|
* mod_blocklist: Don't send unavailable presence from unavailable sessions ↵Kim Alvefur2014-10-261-1/+3
| | | | when blocking a contact
* mod_blocklist: Only log message about migrating from mod_privacy when there ↵Kim Alvefur2014-10-251-1/+1
| | | | is data to migrate
* mod_blocklist: Capitalize log messageKim Alvefur2014-10-051-1/+1
|
* mod_blocklist: Use full word as variable name, we can afford thatKim Alvefur2014-08-121-4/+4
|
* mod_blocklist: Correct commentKim Alvefur2014-08-121-1/+1
|
* mod_blocklist: Fix any unblock emptying the blocklistKim Alvefur2014-08-121-1/+1
|
* mod_blocklist: XEP-0191 implementation written for speed and independence ↵Kim Alvefur2014-08-101-0/+273
from mod_privacy