Log

core/modulemanager.lua @ 9908:7d12af856238

description author age
modulemanager: Set module status on successful or failed module load Matthew Wild 2019-03-19
modulemanager: Fix issues introduced in previous commit acf74ad0b795 [thanks luacheck, scansion] Matthew Wild 2018-10-26
Many things: switch from hacky multi-arg xpcall implementations to a standard util.xpcall Matthew Wild 2018-10-26
modulemanager: Expose function to get the list of modules that should be loaded on a host Matthew Wild 2018-06-20
core: Use prosody.hosts instead of _G.hosts for consistency Kim Alvefur 2018-03-29
vairious: Add annotation when an empty environment is set [luacheck] Kim Alvefur 2018-02-28
core: Split some very long lines [luacheck] Kim Alvefur 2017-03-04
modulemanager: Silence log message about attempts to load already loaded modules for shared modules Kim Alvefur 2016-03-19
loggingmanager,modulemanager,moduleapi: Ignore warning about accessing _G.unpack [luacheck] Kim Alvefur 2016-02-18
loggingmanager,modulemanager,moduleapi: Localize unpack compatible with Lua 5.2+ Kim Alvefur 2016-02-18
core.*: Remove use of module() function Kim Alvefur 2015-02-21
modulemanager: Add luacheck annotations Matthew Wild 2015-05-06
modulemanager: Remove unused import of pcall #luacheck Matthew Wild 2015-05-06
core.module{manager,api}: Fix for 010b141e91ed (Thanks v1ct0r) Kim Alvefur 2014-09-22
core.modulemanager, core.moduleapi: Hack around dependency loop Kim Alvefur 2014-09-17
Merge 0.9->0.10 Matthew Wild 2014-08-28
modulemanager: Reduce warning to debug level message about modules already being loaded, it's probably just module:depends() Kim Alvefur 2014-08-27
mod_s2s_auth_certs: Split PKIX based certificate checking from mod_s2s into new plugin Kim Alvefur 2014-07-25
Merge 0.9->0.10 Kim Alvefur 2014-03-25
modulemanager: Load mod_saslauth on components by default Kim Alvefur 2014-03-22
modulemanager: Always load a platform-specific module, add stub modules for Windows and unknown platforms Kim Alvefur 2014-01-26
Remove all trailing whitespace Florian Zeitz 2013-08-09
modulemanager: add missing ipairs import. Marco Cirillo 2013-04-01
modulemanager: add function to retrieve module items from a specific host entity. Marco Cirillo 2013-04-01
core.*: Complete removal of all traces of the "core" section and section-related code. Kim Alvefur 2013-03-23
modulemanager: Set module.reloading when a module is reloading, and when loading make the saved state available in module.saved_state (if any) Matthew Wild 2012-11-22
hostmanager, modulemanager: Ensure hosts[*].modules always exists. Waqas Hussain 2012-09-12
Eliminate direct setfenv usage Florian Zeitz 2012-06-08
modulemanager, moduleapi: Turn module.event_handlers into a multitable and track object->event->handler associations correctly (thanks Zash) Matthew Wild 2012-05-19
moduleapi, modulemanager: Re-structure module.event_handlers so that the same handler can harmlessly handle multiple events (thanks Zash) Matthew Wild 2012-05-18
modulemanager: Components should inherit mod_s2s from global modules_enabled too Matthew Wild 2012-05-16
modulemanager: Set module.reloading = true when firing module-reloaded event Matthew Wild 2012-05-11
modulemanager: Pass the module's final host (e.g. '*') to the module-loaded event Matthew Wild 2012-04-29
modulemanager: Hide deprecation warning for modules loaded on '*' directly (e.g. prosodyctl mod_<command>) (thanks Zash) Matthew Wild 2012-04-29
modulemanager: Fixes to handle circular dependencies in module:depends() Matthew Wild 2012-04-28
modulemanager: Remove unused function imports Matthew Wild 2012-04-28
modulemanager: Remove unused NULL declaration Matthew Wild 2012-04-28
modulemanager: Clear modulemap when a host is deactivated (thanks xnyhps) Matthew Wild 2012-04-27
modulemanager: Set module.environment before calling add_host, otherwise the module will get the parent's environment (thanks xnyhps and Maranda) Matthew Wild 2012-04-27
modulemanager: Set module.loaded = false on unload Matthew Wild 2012-04-23
modulemanager: Report errors that happen when loading a shared module onto its original host Matthew Wild 2012-04-23
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]) Matthew Wild 2012-04-21
modulemanager: When a shared module becomes global, ensure it still gets loaded onto the original target host Matthew Wild 2012-04-21
modulemanager: Support for shared modules - function module.add_host(host_module) in a global module Matthew Wild 2012-04-21
modulemanager: Make module_has_method and module_call_method use rawget() Matthew Wild 2012-04-21
modulemanager: Use modulemap rather than hosts[host] (fix for when host == "*") Matthew Wild 2012-04-21
modulemanager: Use api_instance rather than pluginenv.module (same thing) Matthew Wild 2012-04-21
modulemanager: Allow loading a module onto "*" (part-fixes #228) Matthew Wild 2012-04-21
modulemanager: Some refactoring. Deprecate module.host = "*", modules should call module:set_global() (which has been around since forever) Matthew Wild 2012-03-14
modulemanager: Use appropriate events object for global modules when firing item-removed on unload Matthew Wild 2012-03-14
modulemanager: include mod_c2s and mod_s2s into autoloaded modules. Florian Zeitz 2012-02-24
modulemanager: load(): Return and use the correct module object Matthew Wild 2012-01-22
modulemanager: Cleanup some unused variables, imports, whitespace and add a comment. Matthew Wild 2012-01-22
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. Matthew Wild 2012-01-22
modulemanager: Drop unnecessary prosody_events local Matthew Wild 2012-01-22
modulemanager: Some reorganisation. Only external change is (should be) that module-unloaded and module-loaded are no longer fired when reloading a module, the new event module-reloaded is fired instead. Matthew Wild 2012-01-22
modulemanager: Move in-module API functions to core.moduleapi (half the file size, yay) Matthew Wild 2012-01-22
modulemanager: Remove 'config' from module environments (no modules use it that I'm aware of) Matthew Wild 2011-12-13
modulemanager: Fix undefined global access in handling of module.save error handling. Waqas Hussain 2011-09-20
modulemanager: Fixed undefined global access in broadcast of item-remove events on module unload. Waqas Hussain 2011-09-17
modulemanager: Add module:handle_items() to allow a module to more easily handle a list of items on a host Matthew Wild 2011-08-29
modulemanager: Add module:hook_global(name, handler, priority) to hook global (server-wide) events Matthew Wild 2011-08-14
core.modulemanager, mod_disco: Add support for XEP-0128: Service Discovery Extensions Kim Alvefur 2011-08-08
modulemanager: Added module.path to the plugin API to let plugins determine their load path. Waqas Hussain 2011-02-20
modulemanager: Fix disabling a module on a single host Paul Aurich 2011-02-02
modulemanager: Removed an unused variable. Waqas Hussain 2011-01-05
modulemanager: Auto-load mod_offline. Waqas Hussain 2010-12-27
modulemanager, mod_console: Rename mod_console -> mod_admin_telnet - add compatibility code to modulemanager for existing configs Matthew Wild 2010-12-17
modulemanager: Allow components to inherit mod_iq. This allows modules loaded on components to hook IQ stanza sub-events ("iq-set/bare/xmlns:tag", etc). Waqas Hussain 2010-12-02
Backed out changeset bfc47564aaef (No need for _M with module.environment) Matthew Wild 2010-11-13
modulemanager: Inside plugins, have global _M as a reference to the module's environment Matthew Wild 2010-11-13
modulemanager, usermanager: Removed hooks for the 'component-activated' event (components now fire 'host-activated'). Waqas Hussain 2010-11-10
modulemanager: Return an error when loading a module on a non-existent host, don't create the host. Removes dependecy on componentmanager. Waqas Hussain 2010-11-10
modulemanager: load_modules_for_host(): For components, the inherited modules are the intersection of the inheritable and global modules lists, not the difference. Waqas Hussain 2010-11-10
modulemanager: load_modules_for_host(): Inherit 'tls' and 'dialback' from global modules list for components, and load the component module. Also refactored to use util.set. Waqas Hussain 2010-11-10
modulemanager: Fixed: Locally defined pcall wasn't returning return values of the called function. Waqas Hussain 2010-11-10
componentmanager, hostmanager, modulemanager, mod_component: Got rid of the useless hosts[*].connected property. Waqas Hussain 2010-11-09
modulemanager, stanza_router: Moved modulemanager.handle_stanza to stanza_router, as a local function handle_unhandled_stanza. modulemanager is no longer a dependency of stanza_router. Waqas Hussain 2010-10-16
modulemanager: Removed another legacy events API (add_event_hook), and related code. Waqas Hussain 2010-10-16
modulemanager: Removed legacy events API, and related code. Waqas Hussain 2010-10-16
modulemanager: Removed add_iq_handler() from the plugin API. Waqas Hussain 2010-10-16
modulemanager: Remove dependency on eventmanager Matthew Wild 2010-08-03
Rename mod_defaultauth -> mod_auth_internal, mod_hashpassauth -> mod_auth_internal_hashed, and the providers to internal and internal_hashed respectively. Also no longer auto-load defaultauth, but instead auto-load the plugin selected for each host at startup based on the provider name. Matthew Wild 2010-06-04
Have defaultauth load by default Jeff Mitchell 2010-05-27
modulemanager: Log proper tracebacks on errors during module load/unload. Waqas Hussain 2010-04-19
Merge 0.6->0.7 Matthew Wild 2010-03-30
stanza_router, s2smanager, modulemanager: Fix for handling of the default namespace on stanzas, causing sometimes jabber:client to be sent over s2s, and accepted Matthew Wild 2010-03-30
Merge 0.6->0.7 Matthew Wild 2010-03-22
Update copyright headers for 2010 Matthew Wild 2010-03-22
modulemanager: Fire item-removed events on module unload. Waqas Hussain 2009-12-09
modulemanager: Fix traceback on unloading global modules (thanks KSid) Matthew Wild 2010-02-18
modulemanager: Load plugin libraries in the same environment as the plugins. Waqas Hussain 2010-02-11
modulemanager: Make the plugin environment available directly (module.environment within plugins). Waqas Hussain 2010-02-11
modulemanager: Remove obsolete actions code Matthew Wild 2010-01-21
modulemanager: Fire item-removed events on module unload. Waqas Hussain 2009-12-09
modulemanager: Fixed a global access. Waqas Hussain 2009-12-09
modulemanager, net.dns: Remove trailing whitespace Matthew Wild 2009-12-02
modulemanager: Fire events module-loaded and module-unloaded, both receive a table with 'module' and 'host' fields, thanks bjc Matthew Wild 2009-12-01
modulemanager: New module API methods for getting config options with type conversion, get_option_string, get_option_number, get_option_boolean, get_option_array, get_option_set Matthew Wild 2009-11-23
modulemanager: api:get_option(): Handle correctly option values of boolean false, don't assume value unset Matthew Wild 2009-11-08
modulemanager: Module loading rewritten to gracefully deal with errors in module initialization. Waqas Hussain 2009-10-18
modulemanager: Use componentmanager to create new components. Waqas Hussain 2009-10-17
modulemanager: Fixed: Stanza modules were being auto-loaded for components (regression in hg:1e674dae31ae). Waqas Hussain 2009-10-17
modulemanager: Fixed traceback on loading modules on unknown hosts. Waqas Hussain 2009-10-17
modulemanager: Slightly rearranged code for more robust unloading of modules. Waqas Hussain 2009-10-17
modulemanager: Re-organise module loading to still work when no global modules_enabled is defined in the config (thanks hoelzro for accidentally discovering this one) Matthew Wild 2009-10-16
modulemanager: Changed api:get_host_items to include items from the global host in its result. Waqas Hussain 2009-10-13
modulemanager: Bump log level of unhandled non-default-namespace elements, and log their full XML Matthew Wild 2009-10-06
Merge with 0.5 Matthew Wild 2009-10-05
modulemanager: Add host.modules to contain a table of modules for a host Matthew Wild 2009-10-05
Merge with 0.5 Matthew Wild 2009-09-30
modulemanager: Load modules for components, too Matthew Wild 2009-09-30
Merge with 0.5 matthew 2009-09-05
modulemanager: Fixed: Internally generated stanzas could be missing namespaces, which causes tracebacks in logging (e.g., auto-generated offline presence) Waqas Hussain 2009-09-05
modulemanager: Removed unused variables and reference to core.discomanager Waqas Hussain 2009-08-18
modulemanager: Removed unnecessary code in the unload function Waqas Hussain 2009-08-18
modulemanager: Removed legacy disco#items hook Waqas Hussain 2009-08-18
modulemanager: add_feature and add_identity APIs updated to use only the add_item API Waqas Hussain 2009-08-18
modulemanager: Added module API function to get all items for a given host based on a key Waqas Hussain 2009-08-18
modulemanager: Module API functions add_item and add_feature updated to use the add_item API Waqas Hussain 2009-08-18
modulemanager: Changed the add_identity module API to accept an optional name parameter (the 'name' attribute for the <identity/> element) Waqas Hussain 2009-08-18
Added: functions add_item and remove_item to add and remove items to the module API Waqas Hussain 2009-08-18
modulemanager: Added get_option(name, default_value) to plugin API Waqas Hussain 2009-07-25
Remove version number from copyright headers Matthew Wild 2009-07-10
modulemanager: Small code improvement, move autoloaded modules list to the top of the file Matthew Wild 2009-07-09
configmanager, modulemanager: Allow components to have modules specified in the config (but don't load the global set of modules for them) Matthew Wild 2009-07-09
modulemanager: Don't close stream on stream:error with unsupported-stanza-type (fixes #102) Waqas Hussain 2009-06-29
Automated merge with http://waqas.ath.cx:8000/ Matthew Wild 2009-06-23
modulemanager: Enabled access to the module API from plugin libraries Waqas Hussain 2009-06-22
modulemanager: Added simple module:require implementation Waqas Hussain 2009-06-21
modulemanager: Expose api table to allow others to extend the module API Matthew Wild 2009-06-23
modulemanager: Fix copy/paste error, should be name instead of module_name Matthew Wild 2009-06-22
modulemanager: Call 'load' method when loading a module Matthew Wild 2009-06-22
modulemanager: Removed unused function get_module_filename(name) Waqas Hussain 2009-06-14
modulemanager: Changed to use util.pluginloader Waqas Hussain 2009-06-14
modulemanager: Change the ideitity attribute typ to type Waqas Hussain 2009-06-12
modulemanager: Added function add_identity(category, type) to the modules API Waqas Hussain 2009-06-12
modulemanager: Use module_name in log entry to fix 'error initialising module "nil"' error Matthew Wild 2009-06-08
Automated merge with http://waqas.ath.cx:8000/ Matthew Wild 2009-06-07
modulemanager: Allow setting a priority while adding an event handler via the module:hook API Waqas Hussain 2009-06-07
modulemanager: Don't require xmlns to be non-nil Matthew Wild 2009-06-06
modulemanager: module:log() -> self:log() fix Matthew Wild 2009-06-06
modulemanager: Allow setting priority of stanza handlers Matthew Wild 2009-06-06
modulemanager: Add module:hook([xmlns, ] name, handler) which uses new stanza events Matthew Wild 2009-06-06
modulemanager: Load mod_message, mod_iq and mod_presence implicitly Waqas Hussain 2009-06-04
modulemanager: Keep track of event handlers added by module:hook, and remove them on module unload Waqas Hussain 2009-05-31
modulemanager: Stopped using core.eventmanager in module:fire_event Waqas Hussain 2009-05-30
modulemanager: module:fire_event now fires on the global and host-specific events objects as well Waqas Hussain 2009-05-30
modulemanager: Made some code more concise Waqas Hussain 2009-05-30
modulemanager: module:hook now allows global modules to hook events on the prosody.events object Waqas Hussain 2009-05-30
modulemanager: Added hook(event, handler) to the plugin API Waqas Hussain 2009-05-30
modulemanager: Add module:fire_event() to module API Matthew Wild 2009-05-19
modulemanager: require util.stanza Waqas Hussain 2009-05-16
modulemanager: Don't close the stream on unhandled stream:features Waqas Hussain 2009-05-16
stanza_router: Removed global function core_handle_stanza Waqas Hussain 2009-05-15
modulemanager: No need for print() Matthew Wild 2009-05-04
modulemanager: Don't load modules when modules_enable is false Matthew Wild 2009-05-02
modulemanager: Update logger when a module becomes global Matthew Wild 2009-04-30
Fixed: modulemanager: IQs with extended elements in the default namespace could cause backtraces (related to issue #74) Waqas Hussain 2009-03-29
0.3->0.4 Matthew Wild 2009-03-20
Let global modules add disco features for all hosts Waqas Hussain 2009-03-04
Allow global modules to hook stanza handlers Waqas Hussain 2009-03-04
modulemanager initializes hosts[host] if it isn't already initialized when loading a module. Waqas Hussain 2009-02-11
Fix for never checking if the first module for a host is already loaded (affects global modules) Matthew Wild 2009-02-04
Update copyright notices for 2009 Matthew Wild 2009-01-30
0.2->0.3 Matthew Wild 2009-01-30
GPL->MIT! Matthew Wild 2009-01-30
modulemanager: Really fix call_module_method to work properly Matthew Wild 2009-01-29
modulemanager: Add get_host_type() API method, and fix up call_module_method to work properly Matthew Wild 2009-01-29
modulemanager: Add module:set_global() as a cleaner way for a module to declare itself 'global' Matthew Wild 2009-01-24
core.modulemanager: Some refactoring to make upcoming changes a little easier Matthew Wild 2009-01-24
modulemanager: Comment out logging of modules hooking stanzas, too noisy Matthew Wild 2009-01-16
modulemanager: Check for syntax errors before reloading a module Waqas Hussain 2009-01-13
modulemanager: Added reload support, with callbacks for saving and restoring state Waqas Hussain 2009-01-13
Automated merge with http://waqas.ath.cx:8000/ Matthew Wild 2009-01-13
modulemanager: Fixed error on unloading modules with no handlers Waqas Hussain 2009-01-13
Add core.actions for managing server 'actions'; and make modulemanager register actions 'load' and 'unload' Matthew Wild 2009-01-12
modulemanager: Change pairs() to ipairs() to allow ordered module loading Matthew Wild 2009-01-12
modulemanager: Per-host event hooks for plugins - solves issue 41 Waqas Hussain 2009-01-09
Automated merge with http://waqas.ath.cx:8000/ Matthew Wild 2009-01-07
modulemanager: module.unload now gets called when modules are being unloaded Waqas Hussain 2009-01-07
Remove warning of already-loaded modules at startup Matthew Wild 2009-01-04
Modulemanager: Basic modules can now be unloaded correctly Waqas Hussain 2009-01-03
Fix for not loading global modules when host-specific modules are specified in config Matthew Wild 2008-12-24
0.1 -> 0.2 Matthew Wild 2008-12-10
Don't try processing stanzas not of type get or set in module manager Waqas Hussain 2008-12-08
Merge from waqas Matthew Wild 2008-12-06
Removed unused variables Waqas Hussain 2008-12-06
Combined and merged similar code Waqas Hussain 2008-12-06
Removed pre-multitable code from module manager Waqas Hussain 2008-12-06
Temporary hack for global modules Matthew Wild 2008-12-06
Merge from waqas Matthew Wild 2008-12-06
Changed module manager to use multitable (initial commit) Waqas Hussain 2008-12-06
Fix add_event_hook in module API Matthew Wild 2008-12-06
Move module loading to modulemanager Matthew Wild 2008-12-06
Add hostmanager, and eventmanager Matthew Wild 2008-12-06
Added function add_feature to modules API (for adding disco features) Waqas Hussain 2008-12-04
Insert copyright/license headers Matthew Wild 2008-12-03
Update Makefile to now pass config paths to prosody. Update prosody, modulemanager and connectionlisteners to obey these paths. Matthew Wild 2008-11-29
is_loaded() and incomplete unload() for modules Matthew Wild 2008-11-27
Bumper commit for the new modulemanager API \o/ Updates all the modules, though some more changes may be in store. Matthew Wild 2008-11-27
Merge from waqas Matthew Wild 2008-11-23
Check to prevent error on IQs from completely unhandled origins Waqas Hussain 2008-11-23
Backed out the backout. Now we're back out. Matthew Wild 2008-11-23
Backed out changeset 79bd7a3e906c Matthew Wild 2008-11-23
Typo prevented modulemanager.load() from returning the error if load failed. Matthew Wild 2008-11-23
Check to prevent error for IQs from completely unhandled origins Waqas Hussain 2008-11-22
If iq child element has no xmlns, use parent's Matthew Wild 2008-11-15
We now fail if modules fail to load at startup. Waqas Hussain 2008-11-08
Reworked the way lxmppd.cfg is used Waqas Hussain 2008-11-06
Fix for previous commit (again) Matthew Wild 2008-11-02
Fix for previous commit Matthew Wild 2008-11-02
Fix for add_iq_handler to allow multiple origin types too Matthew Wild 2008-11-02
Fix s2s once and for all Matthew Wild 2008-11-01
mod_version is here Matthew Wild 2008-10-30
Added support for XEP-0049: Private XML Storage (mod_private) Waqas Hussain 2008-10-26
Added: vCard plugin: mod_vcard Waqas Hussain 2008-10-08
TLS: Handshake works, no data after that tls Matthew Wild 2008-10-05
mod_InBandRegistration -> mod_register Matthew Wild 2008-10-05
User registration, etc (jabber:iq:register) Waqas Hussain 2008-10-04
Fix stanza handlers to use xmlns also for matching Matthew Wild 2008-10-04
Small fixes Matthew Wild 2008-10-04
Add support for arbitrary events and event hooks Matthew Wild 2008-10-03
SASL! Matthew Wild 2008-10-02
Huge commit to: Matthew Wild 2008-09-30