Kim Alvefur
cbd3982308
mod_blocklist: Fix fix signal for letting stanzas pass
...
Returning nothing/nil lets stanzas pass, returning anything else blocks
2 years ago
Matthew Wild
f94d5d2f7f
mod_blocklist: Check JID of mediated MUC invite sender against blocklist
...
This ensures that someone on your blocklist is unable to invite you to MUC
rooms.
2 years ago
Kim Alvefur
4414f8402f
mod_blocklist: Drop blocked messages without error, option to restore compliant behavior
...
From XEP-0191:
> For message stanzas, the server SHOULD return an error, which SHOULD
> be <service-unavailable/>.
Following this may leak to a blocked JID that they have been blocked,
which seems contrary to the goal of pretending to be perpetually
offline.
2 years ago
Kim Alvefur
c9aa3894ec
mod_blocklist: Remove weak cache (and increase default LRU cache size)
...
Weak tables are said to have suboptimal performance, so we might as well
get replace it with an increased default LRU cache size.
Sorry about the 'and'
2 years ago
Kim Alvefur
71ad48095d
plugins: Use integer config API with interval specification where sensible
...
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
2 years ago
Kim Alvefur
98922d54b1
plugins: Prefix module imports with prosody namespace
3 years ago
Kim Alvefur
2269035c0d
mod_blocklist: Add option 'migrate_legacy_blocking' to disable migration 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.
3 years ago
Kim Alvefur
1f827c7df8
mod_blocklist: Trigger resend of presence when unblocking a contact ( fixes #1380 )
7 years ago
Kim Alvefur
57f55730e7
mod_blocklist: Add comment to clarify some logic
7 years ago
Kim Alvefur
f65c017ee1
Fix various spelling mistakes [codespell]
7 years ago
Kim Alvefur
40b1e3e0ed
plugins: Remove tostring call from logging
...
Taken care of by loggingmanager now
Mass-rewrite using lua pattern like `tostring%b()`
7 years ago
Kim Alvefur
40c1da7e93
mod_blocklist: Store timestamp of blocking to allow age to be determined
8 years ago
Kim Alvefur
b9a0fc550e
mod_blocklist: Allow mod_presence to handle subscription stanzas before bouncing outgoing presence ( fixes #575 )
8 years ago
Kim Alvefur
56ab48e717
mod_blocklist: Drop messages to existing full JIDs in order to prevent issues with MUC PMs, fixes #690
8 years ago
Kim Alvefur
38ea54b37b
mod_blocklist: Use local variable [luacheck]
9 years ago
Kim Alvefur
e1a8887ccd
mod_blocklist: Split long line [luacheck]
9 years ago
Kim Alvefur
9ac77204ba
mod_blocklist: Check first level cache before calling blocklist getter
9 years ago
Kim Alvefur
088d53b68f
mod_blocklist: Simplify loop with ipairs
9 years ago
Kim Alvefur
b7d32f0553
mod_blocklist: Remove one indentation level
9 years ago
Kim Alvefur
12325f7354
mod_blocklist: Return early from migration if no valid privacy list data is found
9 years ago
Kim Alvefur
6280a047f6
mod_blocklist: Make the 'false' metadata field a table so we can store timestamps and other useful data
9 years ago
Kim Alvefur
a73876f45b
mod_blocklist: Mention issue numbers
9 years ago
Kim Alvefur
602fc79098
mod_blocklist: Decrease priority of iq hooks to ease handling by other modules
9 years ago
Kim Alvefur
3c9b6a4a8d
mod_blocklist: Clear second level cache correctly on user deletion
10 years ago
Kim Alvefur
730986f23c
mod_blocklist: Update Copyright header
10 years ago
Kim Alvefur
589b736095
mod_blocklist: Skip creating some tables and some processing if unblocking
10 years ago
Kim Alvefur
7c2da2da9f
mod_blocklist: When blocking someone who sent a subscription request, forget that request since the user would be unable to deny it while blocked ( Fixes #574 )
10 years ago
Kim Alvefur
4fb06ad84f
mod_blocklist: Restructure how we keep track of where to send unavailable presence
10 years ago
Kim Alvefur
b4679e2188
mod_blocklist: session[username] can't possibly be unset if that user is sending queries
10 years ago
Kim Alvefur
66b75a0f2c
mod_blocklist: Add comments describing some variables
10 years ago
Kim Alvefur
8920afaf2f
mod_blocklist: Expand comments on caching of blocklists
10 years ago
Kim Alvefur
4b1ba49a85
mod_blocklist: Add comment about compliance issue #575
10 years ago
Kim Alvefur
0ec9e20543
mod_blocklist: Rename variable for clarity
10 years ago
Kim Alvefur
b2f0349c7e
mod_blocklist: Clear second level cache when user is deleted
10 years ago
Kim Alvefur
13d34d918f
mod_blocklist: Use util.cache to manage how many users blocklists are kept in memory
10 years ago
Kim Alvefur
461b90b5b4
mod_blocklist: Explicitly halt event propagation after returning a reply (send returns nil sometimes)
10 years ago
Kim Alvefur
e5f23f0fef
mod_blocklist: Some cleanup [luacheck]
11 years ago
Kim Alvefur
f361945594
mod_blocklist: Fix import
11 years ago
Kim Alvefur
d0cb0b35d5
mod_blocklist: Don't send unavailable presence from unavailable sessions when blocking a contact
11 years ago
Kim Alvefur
a5013be8b5
mod_blocklist: Only log message about migrating from mod_privacy when there is data to migrate
11 years ago
Kim Alvefur
edbbf7e07e
mod_blocklist: Capitalize log message
11 years ago
Kim Alvefur
7315c5156d
mod_blocklist: Use full word as variable name, we can afford that
12 years ago
Kim Alvefur
49c8878c9d
mod_blocklist: Correct comment
12 years ago
Kim Alvefur
ea8e101a96
mod_blocklist: Fix any unblock emptying the blocklist
12 years ago
Kim Alvefur
0bdc884676
mod_blocklist: XEP-0191 implementation written for speed and independence from mod_privacy
12 years ago