Kim Alvefur
|
36bdcaa99c
|
core: Use prosody.hosts instead of _G.hosts for consistency
|
2018-03-29 16:58:06 +02:00 |
|
Kim Alvefur
|
146acdbd33
|
vairious: Add annotation when an empty environment is set [luacheck]
|
2018-02-28 20:06:26 +01:00 |
|
Kim Alvefur
|
014168ff18
|
core: Split some very long lines [luacheck]
|
2017-03-04 17:49:48 +01:00 |
|
Kim Alvefur
|
14810dd361
|
modulemanager: Silence log message about attempts to load already loaded modules for shared modules
|
2016-03-19 16:35:43 +01:00 |
|
Kim Alvefur
|
cecd6ca31d
|
loggingmanager,modulemanager,moduleapi: Ignore warning about accessing _G.unpack [luacheck]
|
2016-02-18 14:57:51 +01:00 |
|
Kim Alvefur
|
de7b01d7d2
|
loggingmanager,modulemanager,moduleapi: Localize unpack compatible with Lua 5.2+
|
2016-02-18 14:57:04 +01:00 |
|
Kim Alvefur
|
075278ff98
|
core.*: Remove use of module() function
|
2015-02-21 10:42:19 +01:00 |
|
Matthew Wild
|
e2d007b443
|
modulemanager: Add luacheck annotations
|
2015-05-06 19:16:16 +01:00 |
|
Matthew Wild
|
88ffd86206
|
modulemanager: Remove unused import of pcall #luacheck
|
2015-05-06 19:15:35 +01:00 |
|
Kim Alvefur
|
ad7e3d7233
|
core.module{manager,api}: Fix for 010b141e91ed (Thanks v1ct0r)
|
2014-09-23 00:23:33 +02:00 |
|
Kim Alvefur
|
3d4d152711
|
core.modulemanager, core.moduleapi: Hack around dependency loop
|
2014-09-17 14:48:49 +02:00 |
|
Matthew Wild
|
e5cad1e21d
|
Merge 0.9->0.10
|
2014-08-28 09:23:24 +01:00 |
|
Kim Alvefur
|
4edabcbd81
|
modulemanager: Reduce warning to debug level message about modules already being loaded, it's probably just module:depends()
|
2014-08-27 10:46:22 +02:00 |
|
Kim Alvefur
|
79cad06d97
|
mod_s2s_auth_certs: Split PKIX based certificate checking from mod_s2s into new plugin
|
2014-07-25 20:41:54 +02:00 |
|
Kim Alvefur
|
f7d4b04bf1
|
Merge 0.9->0.10
|
2014-03-25 19:16:38 +01:00 |
|
Kim Alvefur
|
09b2942592
|
modulemanager: Load mod_saslauth on components by default
|
2014-03-22 12:42:01 +01:00 |
|
Kim Alvefur
|
2f267b9543
|
modulemanager: Always load a platform-specific module, add stub modules for Windows and unknown platforms
|
2014-01-26 21:16:24 +01:00 |
|
Florian Zeitz
|
4b618a8727
|
Remove all trailing whitespace
|
2013-08-09 17:48:21 +02:00 |
|
Marco Cirillo
|
bf1ce76f60
|
modulemanager: add missing ipairs import.
|
2013-04-01 23:41:57 +00:00 |
|
Marco Cirillo
|
2a5ae358a2
|
modulemanager: add function to retrieve module items from a specific host entity.
|
2013-04-01 22:34:44 +00:00 |
|
Kim Alvefur
|
75e786c1f0
|
core.*: Complete removal of all traces of the "core" section and section-related code.
|
2013-03-23 02:33:15 +01:00 |
|
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)
|
2012-11-22 20:59:20 +00:00 |
|
Waqas Hussain
|
d05b3ab008
|
hostmanager, modulemanager: Ensure hosts[*].modules always exists.
|
2012-09-13 00:32:12 +05:00 |
|
Florian Zeitz
|
40ea2230d1
|
Eliminate direct setfenv usage
|
2012-06-08 05:04:38 +02:00 |
|
Matthew Wild
|
68907c01f2
|
modulemanager, moduleapi: Turn module.event_handlers into a multitable and track object->event->handler associations correctly (thanks Zash)
|
2012-05-19 15:39:16 +01:00 |
|
Matthew Wild
|
c7136a5b2c
|
moduleapi, modulemanager: Re-structure module.event_handlers so that the same handler can harmlessly handle multiple events (thanks Zash)
|
2012-05-18 23:53:02 +01:00 |
|
Matthew Wild
|
289e7b406d
|
modulemanager: Components should inherit mod_s2s from global modules_enabled too
|
2012-05-16 20:30:53 +01:00 |
|
Matthew Wild
|
ab4f2c5949
|
modulemanager: Set module.reloading = true when firing module-reloaded event
|
2012-05-11 18:54:17 +01:00 |
|
Matthew Wild
|
fc11973174
|
modulemanager: Pass the module's final host (e.g. '*') to the module-loaded event
|
2012-04-30 00:52:43 +01:00 |
|
Matthew Wild
|
945e41b4e0
|
modulemanager: Hide deprecation warning for modules loaded on '*' directly (e.g. prosodyctl mod_<command>) (thanks Zash)
|
2012-04-29 19:36:11 +01:00 |
|
Matthew Wild
|
4bb43a3fb6
|
modulemanager: Fixes to handle circular dependencies in module:depends()
|
2012-04-28 15:47:43 +01:00 |
|
Matthew Wild
|
a4d9a4101e
|
modulemanager: Remove unused function imports
|
2012-04-28 02:22:42 +01:00 |
|
Matthew Wild
|
f07d1d5441
|
modulemanager: Remove unused NULL declaration
|
2012-04-28 02:18:17 +01:00 |
|
Matthew Wild
|
9fa672af8b
|
modulemanager: Clear modulemap when a host is deactivated (thanks xnyhps)
|
2012-04-27 22:36:35 +01:00 |
|
Matthew Wild
|
bcd870f7d3
|
modulemanager: Set module.environment before calling add_host, otherwise the module will get the parent's environment (thanks xnyhps and Maranda)
|
2012-04-27 21:37:45 +01:00 |
|
Matthew Wild
|
566fc32a4e
|
modulemanager: Set module.loaded = false on unload
|
2012-04-23 15:38:36 +01:00 |
|
Matthew Wild
|
c4ff9b7e10
|
modulemanager: Report errors that happen when loading a shared module onto its original host
|
2012-04-23 14:11:10 +01:00 |
|
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])
|
2012-04-21 22:53:22 +01:00 |
|
Matthew Wild
|
0c6799c936
|
modulemanager: When a shared module becomes global, ensure it still gets loaded onto the original target host
|
2012-04-21 20:37:06 +01:00 |
|
Matthew Wild
|
1c88e91a19
|
modulemanager: Support for shared modules - function module.add_host(host_module) in a global module
|
2012-04-21 20:09:03 +01:00 |
|
Matthew Wild
|
800fd50ce0
|
modulemanager: Make module_has_method and module_call_method use rawget()
|
2012-04-21 20:04:07 +01:00 |
|
Matthew Wild
|
4664423a7b
|
modulemanager: Use modulemap rather than hosts[host] (fix for when host == "*")
|
2012-04-21 20:02:45 +01:00 |
|
Matthew Wild
|
06c05a1916
|
modulemanager: Use api_instance rather than pluginenv.module (same thing)
|
2012-04-21 20:01:40 +01:00 |
|
Matthew Wild
|
28cb1b2a94
|
modulemanager: Allow loading a module onto "*" (part-fixes #228)
|
2012-04-21 20:00:30 +01:00 |
|
Matthew Wild
|
e737bb93b7
|
modulemanager: Some refactoring. Deprecate module.host = "*", modules should call module:set_global() (which has been around since forever)
|
2012-03-14 21:37:00 +00:00 |
|
Matthew Wild
|
aef2645ec8
|
modulemanager: Use appropriate events object for global modules when firing item-removed on unload
|
2012-03-14 17:03:48 +00:00 |
|
Florian Zeitz
|
0699ab44aa
|
modulemanager: include mod_c2s and mod_s2s into autoloaded modules.
|
2012-02-24 15:14:07 +00:00 |
|
Matthew Wild
|
7780d6690a
|
modulemanager: load(): Return and use the correct module object
|
2012-01-22 19:27:06 +00:00 |
|
Matthew Wild
|
ef3a0660f4
|
modulemanager: Cleanup some unused variables, imports, whitespace and add a comment.
|
2012-01-22 18:49:49 +00:00 |
|
Matthew Wild
|
f2a5abecac
|
modulemanager, moduleapi: Replace hooks multitable with an event_handlers map stored in individual modules. Also adds module:hook_object_event() to hook events on any util.events compatible object.
|
2012-01-22 18:49:11 +00:00 |
|