Kim Alvefur
bb3948c857
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
387a03e1d3
core.modulemanager: Add compat for LuaRocks 2.x
5 years ago
Kim Alvefur
915cebae96
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
3f89e9373b
core.modulemanager: Silence warning about unused err variable [luacheck]
6 years ago
Kim Alvefur
7ac5e467ba
core.modulemanager: Disable mod_vcard if mod_vcard_legacy is enabled to prevent conflict ( #1469 )
6 years ago
Kim Alvefur
2ad505a81f
core.modulemanager: Split lists across multiple lines for improved readability
...
Patches will also be easier to read.
6 years ago
Kim Alvefur
ef38f2d062
mod_s2s_bidi: Enables bi-directional streams via XEP-0288
6 years ago
Matthew Wild
d833e2c6d4
modulemanager: Fix issues introduced in previous commit acf74ad0b795 [thanks luacheck, scansion]
7 years ago
Matthew Wild
f5f6460b2e
Many things: switch from hacky multi-arg xpcall implementations to a standard util.xpcall
7 years ago
Matthew Wild
06a10d3a77
modulemanager: Expose function to get the list of modules that should be loaded on a host
8 years ago
Kim Alvefur
77fbea8cdc
core: Use prosody.hosts instead of _G.hosts for consistency
8 years ago
Kim Alvefur
43b814a83b
vairious: Add annotation when an empty environment is set [luacheck]
8 years ago
Kim Alvefur
1ecc3a7918
core: Split some very long lines [luacheck]
9 years ago
Kim Alvefur
487f77d6ef
modulemanager: Silence log message about attempts to load already loaded modules for shared modules
10 years ago
Kim Alvefur
e349fb9c87
loggingmanager,modulemanager,moduleapi: Ignore warning about accessing _G.unpack [luacheck]
10 years ago
Kim Alvefur
bad300a675
loggingmanager,modulemanager,moduleapi: Localize unpack compatible with Lua 5.2+
10 years ago
Matthew Wild
428f9dc002
modulemanager: Add luacheck annotations
11 years ago
Matthew Wild
2553822831
modulemanager: Remove unused import of pcall #luacheck
11 years ago
Kim Alvefur
27265c20e2
core.*: Remove use of module() function
11 years ago
Kim Alvefur
b58d3248b7
core.module{manager,api}: Fix for 010b141e91ed (Thanks v1ct0r)
11 years ago
Kim Alvefur
93a297bc8f
core.modulemanager, core.moduleapi: Hack around dependency loop
11 years ago
Kim Alvefur
3dc45c1222
modulemanager: Reduce warning to debug level message about modules already being loaded, it's probably just module:depends()
12 years ago
Kim Alvefur
bd17040999
mod_s2s_auth_certs: Split PKIX based certificate checking from mod_s2s into new plugin
12 years ago
Kim Alvefur
461da4b3b6
modulemanager: Load mod_saslauth on components by default
12 years ago
Kim Alvefur
f73e31b9c2
modulemanager: Always load a platform-specific module, add stub modules for Windows and unknown platforms
12 years ago
Florian Zeitz
1d833bb807
Remove all trailing whitespace
13 years ago
Marco Cirillo
4453095de2
modulemanager: add missing ipairs import.
13 years ago
Marco Cirillo
a299b9096d
modulemanager: add function to retrieve module items from a specific host entity.
13 years ago
Kim Alvefur
1acfdf5914
core.*: Complete removal of all traces of the "core" section and section-related code.
13 years ago
Matthew Wild
565ea2bbe1
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
48a297e80c
hostmanager, modulemanager: Ensure hosts[*].modules always exists.
13 years ago
Matthew Wild
cf15c2a1e0
modulemanager: Set module status on successful or failed module load
7 years ago
Florian Zeitz
d49b9bc2ab
Eliminate direct setfenv usage
14 years ago
Matthew Wild
28e56af503
modulemanager, moduleapi: Turn module.event_handlers into a multitable and track object->event->handler associations correctly (thanks Zash)
14 years ago
Matthew Wild
0fe909f995
moduleapi, modulemanager: Re-structure module.event_handlers so that the same handler can harmlessly handle multiple events (thanks Zash)
14 years ago
Matthew Wild
f73db37422
modulemanager: Components should inherit mod_s2s from global modules_enabled too
14 years ago
Matthew Wild
35b049d487
modulemanager: Set module.reloading = true when firing module-reloaded event
14 years ago
Matthew Wild
dacec4fc97
modulemanager: Pass the module's final host (e.g. '*') to the module-loaded event
14 years ago
Matthew Wild
a76d2c46fb
modulemanager: Hide deprecation warning for modules loaded on '*' directly (e.g. prosodyctl mod_<command>) (thanks Zash)
14 years ago
Matthew Wild
e8d147c96a
modulemanager: Fixes to handle circular dependencies in module:depends()
14 years ago
Matthew Wild
45fb895f19
modulemanager: Remove unused function imports
14 years ago
Matthew Wild
0ecb3e3e04
modulemanager: Remove unused NULL declaration
14 years ago
Matthew Wild
05af8c8bfa
modulemanager: Clear modulemap when a host is deactivated (thanks xnyhps)
14 years ago
Matthew Wild
0181e189a3
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
91d1035d7d
modulemanager: Set module.loaded = false on unload
14 years ago
Matthew Wild
c40ee81742
modulemanager: Report errors that happen when loading a shared module onto its original host
14 years ago
Matthew Wild
6202ef36ec
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
1894252bd4
modulemanager: When a shared module becomes global, ensure it still gets loaded onto the original target host
14 years ago
Matthew Wild
f51d5c0bd0
modulemanager: Support for shared modules - function module.add_host(host_module) in a global module
14 years ago
Matthew Wild
3f13083483
modulemanager: Make module_has_method and module_call_method use rawget()
14 years ago