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
2023-07-17 01:38:54 +02:00
Kim Alvefur
98922d54b1
plugins: Prefix module imports with prosody namespace
2023-03-24 13:15:28 +01:00
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.
2022-10-17 15:20:06 +02:00
Kim Alvefur
40b1e3e0ed
plugins: Remove tostring call from logging
...
Taken care of by loggingmanager now
Mass-rewrite using lua pattern like `tostring%b()`
2019-07-30 02:29:36 +02:00
Kim Alvefur
57f55730e7
mod_blocklist: Add comment to clarify some logic
2019-06-20 21:44:43 +02:00
Kim Alvefur
3c50754860
Merge 0.11->trunk
2019-06-20 21:40:27 +02:00
Kim Alvefur
1f827c7df8
mod_blocklist: Trigger resend of presence when unblocking a contact ( fixes #1380 )
2019-06-20 21:20:00 +02:00
Kim Alvefur
f65c017ee1
Fix various spelling mistakes [codespell]
2019-05-03 20:54:24 +02:00
Kim Alvefur
40c1da7e93
mod_blocklist: Store timestamp of blocking to allow age to be determined
2018-02-15 03:00:32 +01:00
Kim Alvefur
b9a0fc550e
mod_blocklist: Allow mod_presence to handle subscription stanzas before bouncing outgoing presence ( fixes #575 )
2018-04-06 22:12:45 +02:00
Kim Alvefur
56ab48e717
mod_blocklist: Drop messages to existing full JIDs in order to prevent issues with MUC PMs, fixes #690
2017-09-27 15:27:29 +02:00
Kim Alvefur
38ea54b37b
mod_blocklist: Use local variable [luacheck]
2017-04-01 22:18:44 +02:00
Kim Alvefur
e1a8887ccd
mod_blocklist: Split long line [luacheck]
2017-03-09 00:59:32 +01:00
Kim Alvefur
9ac77204ba
mod_blocklist: Check first level cache before calling blocklist getter
2016-12-05 17:35:38 +01:00
Kim Alvefur
088d53b68f
mod_blocklist: Simplify loop with ipairs
2016-12-08 18:06:18 +01:00
Kim Alvefur
b7d32f0553
mod_blocklist: Remove one indentation level
2016-12-05 17:25:02 +01:00
Kim Alvefur
12325f7354
mod_blocklist: Return early from migration if no valid privacy list data is found
2016-12-05 17:22:12 +01:00
Kim Alvefur
6280a047f6
mod_blocklist: Make the 'false' metadata field a table so we can store timestamps and other useful data
2016-12-08 18:13:56 +01:00
Kim Alvefur
a73876f45b
mod_blocklist: Mention issue numbers
2016-08-20 17:30:16 +02:00
Kim Alvefur
602fc79098
mod_blocklist: Decrease priority of iq hooks to ease handling by other modules
2016-08-20 17:24:08 +02:00
Kim Alvefur
3c9b6a4a8d
mod_blocklist: Clear second level cache correctly on user deletion
2016-01-11 15:35:51 +01:00
Kim Alvefur
730986f23c
mod_blocklist: Update Copyright header
2015-12-06 02:32:29 +01:00
Kim Alvefur
589b736095
mod_blocklist: Skip creating some tables and some processing if unblocking
2015-12-06 02:32:16 +01:00
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 )
2015-12-06 02:30:21 +01:00
Kim Alvefur
4fb06ad84f
mod_blocklist: Restructure how we keep track of where to send unavailable presence
2015-12-06 02:22:49 +01:00
Kim Alvefur
b4679e2188
mod_blocklist: session[username] can't possibly be unset if that user is sending queries
2015-12-06 02:19:04 +01:00
Kim Alvefur
66b75a0f2c
mod_blocklist: Add comments describing some variables
2015-12-06 02:12:28 +01:00
Kim Alvefur
8920afaf2f
mod_blocklist: Expand comments on caching of blocklists
2015-12-06 02:09:52 +01:00
Kim Alvefur
4b1ba49a85
mod_blocklist: Add comment about compliance issue #575
2015-12-06 02:08:24 +01:00
Kim Alvefur
0ec9e20543
mod_blocklist: Rename variable for clarity
2015-12-06 02:07:15 +01:00
Kim Alvefur
b2f0349c7e
mod_blocklist: Clear second level cache when user is deleted
2015-12-05 22:46:50 +01:00
Kim Alvefur
13d34d918f
mod_blocklist: Use util.cache to manage how many users blocklists are kept in memory
2015-11-25 21:06:01 +01:00
Kim Alvefur
461b90b5b4
mod_blocklist: Explicitly halt event propagation after returning a reply (send returns nil sometimes)
2015-09-16 15:16:51 +02:00
Kim Alvefur
e5f23f0fef
mod_blocklist: Some cleanup [luacheck]
2015-04-25 14:57:52 +02:00
Kim Alvefur
f361945594
mod_blocklist: Fix import
2014-12-09 19:36:34 +01:00
Kim Alvefur
d0cb0b35d5
mod_blocklist: Don't send unavailable presence from unavailable sessions when blocking a contact
2014-10-26 16:29:50 +01:00
Kim Alvefur
a5013be8b5
mod_blocklist: Only log message about migrating from mod_privacy when there is data to migrate
2014-10-25 14:45:11 +02:00
Kim Alvefur
edbbf7e07e
mod_blocklist: Capitalize log message
2014-10-05 15:36:19 +02:00
Kim Alvefur
7315c5156d
mod_blocklist: Use full word as variable name, we can afford that
2014-08-12 15:42:20 +02:00
Kim Alvefur
49c8878c9d
mod_blocklist: Correct comment
2014-08-12 15:40:00 +02:00
Kim Alvefur
ea8e101a96
mod_blocklist: Fix any unblock emptying the blocklist
2014-08-12 15:38:48 +02:00
Kim Alvefur
0bdc884676
mod_blocklist: XEP-0191 implementation written for speed and independence from mod_privacy
2014-08-10 10:27:00 +02:00