Commit Graph

154 Commits (780b392d25ff067015f561fcb152bc01ac3ea650)

Author SHA1 Message Date
Matthew Wild 1bb0fa47bc moduleapi: Allow soft dependencies via module:depends(mod, true) 10 months ago
Kim Alvefur fe2c039c97 core.moduleapi: Include source modules when handling items 12 months ago
Kim Alvefur 65386e9810 core.moduleapi: Default labels to empty list to fix error if omitted 1 year ago
Kim Alvefur 9e5bf4fc48 core.moduleapi: Fix 'global' property via :context() - #1748 4 years ago
Matthew Wild 2132eca2e0 moduleapi: Log error message when ambiguous period spec is found in config 2 years ago
Matthew Wild f82d804e1d moduleapi: Rename :once() to :on_ready() for clarity 2 years ago
Matthew Wild 1d1e2cdd9c moduleapi: may(): Support explicit actor_jid in context object 2 years ago
Kim Alvefur 4891b4eea3 core.moduleapi: Parse period min/max arguments 2 years ago
Kim Alvefur aaa6b2b4d6 core.moduleapi: Fix min/maxinteger fallback for Lua 5.2 2 years ago
Kim Alvefur 55768509a3 core.moduleapi: Add min/max range support to :get_option_period 2 years ago
Kim Alvefur 210f608086 moduleapi: Add :get_option_integer() 2 years ago
Kim Alvefur 903e945d09 core.moduleapi: Accept boolean false to disable period setting 2 years ago
Kim Alvefur c8ed05967a core.moduleapi: Log error for unexpected types (booleans?) set as periods 2 years ago
Kim Alvefur f3aac1a4be core.moduleapi: Turn negative periods or "never" into infinity 2 years ago
Kim Alvefur 15a2cec870 core.moduleapi: Improve handling of different types in :get_option_period 2 years ago
Kim Alvefur 3c4dc9a754 core.moduleapi: Add :get_option_period for parsing time intervals 2 years ago
Kim Alvefur 924064a30a core.moduleapi: Allow specifying an acceptable range for number options 4 years ago
Kim Alvefur c4abd68e92 moduleapi: Add enum config option method 5 years ago
Matthew Wild 97d83f6c8f moduleapi: Add luacheck annotation to suppress warning about unused self 3 years ago
Matthew Wild 05c6704075 moduleapi: Add module:once() to execute a function after module load/startup 3 years ago
Matthew Wild eb45f0fcf8 moduleapi: Add 'peek' to :may() and new :could() helper to suppress logging 3 years ago
Matthew Wild 6b2d191b93 moduleapi: may: Fail early if a local session has no role assigned 3 years ago
Kim Alvefur d47a7bb3bd core: Prefix module imports with prosody namespace 3 years ago
Kim Alvefur 32445b3082 core.moduleapi: Record reverse dependencies 3 years ago
Kim Alvefur d90a094949 core.moduleapi: Fix passing variable to logging 3 years ago
Kim Alvefur 03b3b1b9ad core.moduleapi: Check for local role-aware sessions before e.g. s2s 3 years ago
Matthew Wild f5768f63c9 mod_authz_internal, and more: New iteration of role API 3 years ago
Kim Alvefur cdd5608f4a moduleapi: Stricter type check for actor in permission check 3 years ago
Kim Alvefur 55378f128a moduleapi: Remove redundant expansion of ':' prefix in permission names 3 years ago
Kim Alvefur 5f8e441449 moduleapi: Distribute permissions set from global modules to all hosts 3 years ago
Kim Alvefur af339f0e66 core.moduleapi: Expand permission name ':' prefix earlier 4 years ago
Kim Alvefur c776c71066 core.moduleapi: Fixup method name 4 years ago
Matthew Wild d73714b4f4 Switch to a new role-based authorization framework, removing is_admin() 4 years ago
Kim Alvefur f8e73eba98 compat: Use table.pack (there since Lua 5.2) over our util.table 4 years ago
Kim Alvefur 5251c9b686 compat: Remove handling of Lua 5.1 location of 'unpack' function 4 years ago
Matthew Wild 4bdff5a452 modulemanager, moduleapi: Switch to new pluginloader interface 4 years ago
Matthew Wild bd455426f6 moduleapi: Support stripping of multi-word from module names 4 years ago
Kim Alvefur 8aa16eaec0 mod_cron: Add a 'weekly' job frequency 4 years ago
Kim Alvefur 7f2412db5c core.moduleapi: Add API for adding daily or hourly tasks via mod_cron 4 years ago
Kim Alvefur 1ac4aed7cd mod_admin_shell: List collected metrics in module:info 4 years ago
Kim Alvefur 2921cef48f core.moduleapi: Fix name of renamed API in log message 4 years ago
Kim Alvefur f5ea676b92 core.moduleapi: Ensure module:send_iq() handler priority over mod_iq 4 years ago
Kim Alvefur e341f785e6 core.moduleapi: Enable full JID origin queries with module:send_iq() 4 years ago
Kim Alvefur 73d7327896 core.moduleapi: Filter out unrelated direct replies to module:send_iq 4 years ago
Jonas Schäfer 5d597837f5 Statistics: Rewrite statistics backends to use OpenMetrics 5 years ago
Kim Alvefur d53dcee890 core.moduleapi: Return resource path from module:get_directory() (API BC) 5 years ago
Kim Alvefur 58be93c184 core.moduleapi: Use resource path for :load_resource() 5 years ago
Kim Alvefur 1f80e42aa5 core.moduleapi: Allow passing a config table trough :measure 7 years ago
Kim Alvefur 38742f7b50 moduleapi: Rename argument to silence luacheck 6 years ago
Kim Alvefur 7e181e31e0 moduleapi: Fix handling of replies to :send_iq from internal modules 6 years ago