Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | lua-format: Let simple things be one line | Kim Alvefur | 2023-11-30 | 1 | -2/+2 |
| | | | | This doesn't really handle nesting all that nicely tho. | ||||
* | lua-format: Further tweaks | Kim Alvefur | 2023-01-18 | 1 | -3/+3 |
| | | | | | Keeping things a single line makes very deeply nested things "pyramids" a single line, which makes them hard to read. | ||||
* | lua-format: Add new settings | Kim Alvefur | 2021-07-28 | 1 | -0/+6 |
| | |||||
* | lua-format: Tweaks attempting to fit our code style | Kim Alvefur | 2020-07-07 | 1 | -12/+12 |
| | |||||
* | lua-format: Check in defaults | Kim Alvefur | 2020-07-07 | 1 | -0/+26 |
| | | | | | | | By starting with the built-in defaults, we get a nice history of differences from those as we figure out what settings suit us Sorted make comparisons easier. | ||||
* | mod_user_account_management: Fire events with a fake (not destroyed) session | Matthew Wild | 2023-11-30 | 1 | -3/+24 |
| | | | | | | | Previously these events fired after the session had been destroyed, which removes many of the useful properties. The ones I chose to preserve here are the ones used by the community module mod_audit, which seems like a good baseline. | ||||
* | mod_cron: Rebuild with new LuaFormatter settings (tabs!) | Kim Alvefur | 2023-11-30 | 1 | -77/+59 |
| | |||||
* | util.datamanager: Fix missing pack format when reading first index entry | Kim Alvefur | 2023-11-30 | 1 | -1/+1 |
| | | | | Thanks MattJ | ||||
* | mod_user_account_management: Add support for soft-deletion of accounts via IBR | Matthew Wild | 2023-11-30 | 1 | -13/+137 |
| | | | | | | | | | | | | When registration_delete_grace_period is set, accounts will be disabled for the specified grace period before they are fully deleted. During the grace period, accounts can be restored with the user:restore() shell command. The primary purpose is to prevent accidental or malicious deletion of a user's account, which is traditionally very easy for any XMPP client to do with a single stanza. | ||||
* | moduleapi: Log error message when ambiguous period spec is found in config | Matthew Wild | 2023-11-30 | 1 | -1/+9 |
| | |||||
* | util.human.io: Don't accept ambiguous durations by default | Matthew Wild | 2023-11-30 | 2 | -4/+49 |
| | | | | | The new method parse_duration_lax() exports the old behaviour, mainly for compatibility purposes. | ||||
* | mod_cron: Update Teal source and rebuild | Matthew Wild | 2023-11-30 | 2 | -77/+101 |
| | |||||
* | mod_cron: Rename variable to fix shadowing (#luacheck) | Matthew Wild | 2023-11-30 | 1 | -2/+2 |
| | |||||
* | mod_cron: Add shell command to list registered cron tasks with status | Matthew Wild | 2023-11-30 | 1 | -0/+28 |
| | |||||
* | mod_saslauth: Allow plugins to override return SASL condition/text | Matthew Wild | 2023-11-30 | 1 | -1/+3 |
| | |||||
* | luacheckrc, mod_http_file_share: Update for module API change (once->on_ready) | Matthew Wild | 2023-11-30 | 2 | -2/+2 |
| | |||||
* | modulemanager: Allow modules to expose module.ready - to be called after init | Matthew Wild | 2023-11-30 | 1 | -0/+4 |
| | | | | | | | | This is a shortcut for module:on_ready() which exposes the functionality in an idiomatic way consistent with module.load, module.unload, etc. module.ready runs when the module is loaded and the server has finished starting up. | ||||
* | moduleapi: Rename :once() to :on_ready() for clarity | Matthew Wild | 2023-11-30 | 1 | -1/+7 |
| | | | | | | | 'Once' is ambiguous - once per what? on_ready() executes its parameter when the module is loaded *and* the server has finished starting. | ||||
* | usermanager, mod_auth_internal_hashed: Support metadata when disabling a user | Matthew Wild | 2023-11-30 | 2 | -4/+5 |
| | | | | | This allows us to store a time, actor, comment and/or reason why an account was disabled, which seems a generally useful thing to support. | ||||
* | util.datamanager: Load first item into index earlier | Kim Alvefur | 2023-11-27 | 1 | -1/+2 |
| | | | | Should get rid of fseek() call | ||||
* | mod_mam: Use for loop in metadata query | Kim Alvefur | 2023-11-26 | 1 | -4/+2 |
| | | | | | | Some storage drivers will perform cleanup after the last iteration, but if only one step is taken this might be delayed until the garbage collector gets to it. | ||||
* | mod_tokenauth: Ignore invalid grants in storage that have no id | Matthew Wild | 2023-11-29 | 1 | -1/+1 |
| | |||||
* | mod_invites: Fix linter issues | Matthew Wild | 2023-11-29 | 1 | -4/+4 |
| | |||||
* | mod_admin_shell: Fix linter issues | Matthew Wild | 2023-11-29 | 1 | -24/+26 |
| | |||||
* | mod_invites: Use new shell-command API | Matthew Wild | 2023-11-29 | 1 | -22/+25 |
| | |||||
* | mod_admin_shell: Remove verbose logging | Matthew Wild | 2023-11-29 | 1 | -4/+0 |
| | |||||
* | mod_admin_shell: Remove timer:info() (it's been debug:timers() for some time) | Matthew Wild | 2023-11-29 | 1 | -3/+0 |
| | |||||
* | mod_admin_shell: Support for 'shell-command' items (global and per-host) | Matthew Wild | 2023-11-29 | 1 | -0/+169 |
| | | | | | | This should simplify adding shell commands from other modules, which will reduce the growth of mod_admin_shell and make it easier for community modules to expose commands too. | ||||
* | mod_admin_shell: Refactor help to data structures for extensibility | Matthew Wild | 2023-11-29 | 1 | -157/+239 |
| | | | | | This makes it easier for commands added by other modules to add to the help output, for example. | ||||
* | migrator: Add an escape hatch to allow arbitrary config options | Kim Alvefur | 2023-11-27 | 1 | -0/+5 |
| | | | | | | | | | | | | Previously only SQL settings and the 'path' for internal storage could be set, and only for SQL and internal storage. input { type = "whatever"; config = { whatever_foobar = "something" } } | ||||
* | util.poll: Rename things to clarify poll(2) limits | Kim Alvefur | 2023-11-27 | 1 | -5/+7 |
| | | | | | | With epoll(7), MAX_EVENTS controls how many events can be retrieved in one epoll_wait call, while with poll(2) this MAX_WATCHED controls how many sockets or other FDs can be watched at once. | ||||
* | mod_storage_internal: Clear archive item count cache after experimental trim | Kim Alvefur | 2023-11-26 | 1 | -1/+3 |
| | | | | | | | The previous count would be invalid at this point. Should be possible to math out how many items are left, but this is left as future work. | ||||
* | mod_blocklist: Remove weak cache (and increase default LRU cache size) | Kim Alvefur | 2023-11-26 | 1 | -18/+10 |
| | | | | | | | 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' | ||||
* | mod_storage_internal: Close lazy-loading list abstraction after trim | Kim Alvefur | 2023-11-26 | 1 | -0/+6 |
| | | | | Should be done here too. | ||||
* | mod_storage_internal: Only close lazy-loading list store abstractions | Kim Alvefur | 2023-11-26 | 1 | -1/+3 |
| | | | | | Since datamanager can fall back to the old method of loading the whole list, which wouldn't come with a :close method. | ||||
* | util.startup: Use prosody. module namespace | Kim Alvefur | 2023-11-24 | 1 | -1/+1 |
| | | | | Maybe we need some sort of lint for this? | ||||
* | net.http.server: Complete async waiter for non-persistent connections | Kim Alvefur | 2023-11-24 | 1 | -3/+2 |
| | | | | | | | | | Otherwise requests with Connection: close would be stuck in the async wait that starts after the handle_request() call. Together with the new async debugging, this makes the async thread stay in the set of waiting runners forever, where previously it would simply be garbage collected. | ||||
* | mod_storage_internal: Close archive list after completion of iteration | Kim Alvefur | 2023-11-23 | 1 | -0/+1 |
| | | | | | This closes the two FDs that the random access list abstraction uses, otherwise they are left to the garbage collector. | ||||
* | mod_pubsub: Provide some node properties in summary template #1809 | Kim Alvefur | 2023-11-22 | 1 | -1/+11 |
| | | | | | | Gives some access to node details which are otherwise hard to determine if you only see the plain text summary, since it is shared based on the pubsub#type setting (or payload xmlns). | ||||
* | mod_admin_shell: Fix lint [luacheck] | Kim Alvefur | 2023-11-21 | 1 | -10/+8 |
| | |||||
* | util.async: Clip long line [luacheck] | Kim Alvefur | 2023-11-21 | 1 | -1/+2 |
| | |||||
* | net.server_epoll: Avoid call to update socket watch flags when nothing changed | Kim Alvefur | 2023-11-21 | 1 | -0/+3 |
| | | | | Should skip a syscall for each write when using epoll. | ||||
* | util.poll: Quadruple number of events retrieved at once from epoll | Kim Alvefur | 2023-11-21 | 1 | -1/+1 |
| | | | | | | Better performance under load maybe? See b890ceb1c24f for previous increase | ||||
* | mod_admin_shell: Add debug:async() command to show blocked async runners | Matthew Wild | 2023-11-21 | 1 | -0/+65 |
| | |||||
* | util.async: Expose default runner function | Matthew Wild | 2023-11-21 | 1 | -0/+2 |
| | | | | | | This is purely for informational purposes, so it's possible to determine externally whether a runner is using the default runner function (which executes functions as work items) or a custom runner function. | ||||
* | util.async: Record current work item in the runner object | Matthew Wild | 2023-11-21 | 1 | -0/+5 |
| | | | | Mostly expected to be useful for debugging purposes. | ||||
* | util.async: Improve debug logging in a few places | Matthew Wild | 2023-11-21 | 1 | -2/+5 |
| | | | | Knowing the state of the coroutine as well as the runner state can be helpful. | ||||
* | util.async: Export a table of currently-waiting runners | Matthew Wild | 2023-11-21 | 1 | -0/+5 |
| | | | | This can be used for debugging and introspection. | ||||
* | util.poll: Return early if given zero timeout and no pending events | Kim Alvefur | 2023-11-21 | 1 | -0/+6 |
| | | | | | Should have been part of f33887f925e1 to ensure it won't skip processing timers at all when very busy. | ||||
* | moduleapi: Update Teal spec | Kim Alvefur | 2023-11-13 | 1 | -1/+4 |
| | | | | Updates for 65fb0d7a2312::59c3d775c7fa |