Kim Alvefur
81181623fd
core.modulemanager: Fix resource location compat with LuaRocks 2.x
...
The path doesn't include lua version, at least least on Debian, which
still has luarocks 2.x
5 years ago
Kim Alvefur
bee9a3d199
core.modulemanager: Fix error if installer path missing
...
Happens if run outside prosody. Noticed because because the storage
tests fail.
5 years ago
Kim Alvefur
abad51135c
core.modulemanager: Add compat for LuaRocks 2.x
5 years ago
Kim Alvefur
516fc65cb5
core.modulemanager: Locate resources of LuaRocks-installed modules
...
Extra non-code files included with a `copy_directories` directive in a
LuaRocks manifest will be copied into a per-module and per-version
directory under /lib/luarocks/ and all this is there to dig that out so
it can be used in e.g. moduleapi :load_resource().
5 years ago
Kim Alvefur
802fa58a29
core.modulemanager: Silence warning about unused err variable [luacheck]
6 years ago
Kim Alvefur
6a5c40e1ca
core.modulemanager: Disable mod_vcard if mod_vcard_legacy is enabled to prevent conflict ( #1469 )
6 years ago
Kim Alvefur
5ea3c0e758
core.modulemanager: Split lists across multiple lines for improved readability
...
Patches will also be easier to read.
6 years ago
Kim Alvefur
852c0e837d
mod_s2s_bidi: Enables bi-directional streams via XEP-0288
6 years ago
Kim Alvefur
7115b16bc4
core.modulemanager: Disable mod_vcard if mod_vcard_legacy is enabled to prevent conflict ( #1469 )
6 years ago
Matthew Wild
ced9754f5b
modulemanager: Fix issues introduced in previous commit acf74ad0b795 [thanks luacheck, scansion]
7 years ago
Matthew Wild
9b5c6c4d9d
Many things: switch from hacky multi-arg xpcall implementations to a standard util.xpcall
7 years ago
Matthew Wild
01581a23c2
modulemanager: Expose function to get the list of modules that should be loaded on a host
8 years ago
Kim Alvefur
36bdcaa99c
core: Use prosody.hosts instead of _G.hosts for consistency
8 years ago
Kim Alvefur
146acdbd33
vairious: Add annotation when an empty environment is set [luacheck]
8 years ago
Kim Alvefur
014168ff18
core: Split some very long lines [luacheck]
9 years ago
Kim Alvefur
14810dd361
modulemanager: Silence log message about attempts to load already loaded modules for shared modules
10 years ago
Kim Alvefur
cecd6ca31d
loggingmanager,modulemanager,moduleapi: Ignore warning about accessing _G.unpack [luacheck]
10 years ago
Kim Alvefur
de7b01d7d2
loggingmanager,modulemanager,moduleapi: Localize unpack compatible with Lua 5.2+
10 years ago
Matthew Wild
e2d007b443
modulemanager: Add luacheck annotations
11 years ago
Matthew Wild
88ffd86206
modulemanager: Remove unused import of pcall #luacheck
11 years ago
Kim Alvefur
075278ff98
core.*: Remove use of module() function
11 years ago
Kim Alvefur
ad7e3d7233
core.module{manager,api}: Fix for 010b141e91ed (Thanks v1ct0r)
11 years ago
Kim Alvefur
3d4d152711
core.modulemanager, core.moduleapi: Hack around dependency loop
11 years ago
Kim Alvefur
4edabcbd81
modulemanager: Reduce warning to debug level message about modules already being loaded, it's probably just module:depends()
12 years ago
Kim Alvefur
79cad06d97
mod_s2s_auth_certs: Split PKIX based certificate checking from mod_s2s into new plugin
12 years ago
Kim Alvefur
09b2942592
modulemanager: Load mod_saslauth on components by default
12 years ago
Kim Alvefur
2f267b9543
modulemanager: Always load a platform-specific module, add stub modules for Windows and unknown platforms
12 years ago
Florian Zeitz
4b618a8727
Remove all trailing whitespace
13 years ago
Marco Cirillo
bf1ce76f60
modulemanager: add missing ipairs import.
13 years ago
Marco Cirillo
2a5ae358a2
modulemanager: add function to retrieve module items from a specific host entity.
13 years ago
Kim Alvefur
75e786c1f0
core.*: Complete removal of all traces of the "core" section and section-related code.
13 years ago
Matthew Wild
6dd4e27995
modulemanager: Set module.reloading when a module is reloading, and when loading make the saved state available in module.saved_state (if any)
13 years ago
Waqas Hussain
d05b3ab008
hostmanager, modulemanager: Ensure hosts[*].modules always exists.
14 years ago
Matthew Wild
958b92cc3a
modulemanager: Set module status on successful or failed module load
7 years ago
Florian Zeitz
40ea2230d1
Eliminate direct setfenv usage
14 years ago
Matthew Wild
68907c01f2
modulemanager, moduleapi: Turn module.event_handlers into a multitable and track object->event->handler associations correctly (thanks Zash)
14 years ago
Matthew Wild
c7136a5b2c
moduleapi, modulemanager: Re-structure module.event_handlers so that the same handler can harmlessly handle multiple events (thanks Zash)
14 years ago
Matthew Wild
289e7b406d
modulemanager: Components should inherit mod_s2s from global modules_enabled too
14 years ago
Matthew Wild
ab4f2c5949
modulemanager: Set module.reloading = true when firing module-reloaded event
14 years ago
Matthew Wild
fc11973174
modulemanager: Pass the module's final host (e.g. '*') to the module-loaded event
14 years ago
Matthew Wild
945e41b4e0
modulemanager: Hide deprecation warning for modules loaded on '*' directly (e.g. prosodyctl mod_<command>) (thanks Zash)
14 years ago
Matthew Wild
4bb43a3fb6
modulemanager: Fixes to handle circular dependencies in module:depends()
14 years ago
Matthew Wild
a4d9a4101e
modulemanager: Remove unused function imports
14 years ago
Matthew Wild
f07d1d5441
modulemanager: Remove unused NULL declaration
14 years ago
Matthew Wild
9fa672af8b
modulemanager: Clear modulemap when a host is deactivated (thanks xnyhps)
14 years ago
Matthew Wild
bcd870f7d3
modulemanager: Set module.environment before calling add_host, otherwise the module will get the parent's environment (thanks xnyhps and Maranda)
14 years ago
Matthew Wild
566fc32a4e
modulemanager: Set module.loaded = false on unload
14 years ago
Matthew Wild
c4ff9b7e10
modulemanager: Report errors that happen when loading a shared module onto its original host
14 years ago
Matthew Wild
60b60d9c30
modulemanager: For children of shared modules, set module.environment to the empty environment for that module (useful to expose data or APIs at host.modules[module])
14 years ago
Matthew Wild
0c6799c936
modulemanager: When a shared module becomes global, ensure it still gets loaded onto the original target host
14 years ago