aboutsummaryrefslogtreecommitdiffstats
path: root/core/modulemanager.lua
Commit message (Collapse)AuthorAgeFilesLines
* modulemanager: Report errors that happen when loading a shared module onto ↵Matthew Wild2012-04-231-1/+1
| | | | its original host
* modulemanager: For children of shared modules, set module.environment to the ↵Matthew Wild2012-04-211-0/+1
| | | | empty environment for that module (useful to expose data or APIs at host.modules[module])
* modulemanager: When a shared module becomes global, ensure it still gets ↵Matthew Wild2012-04-211-2/+4
| | | | loaded onto the original target host
* modulemanager: Support for shared modules - function ↵Matthew Wild2012-04-211-0/+15
| | | | module.add_host(host_module) in a global module
* modulemanager: Make module_has_method and module_call_method use rawget()Matthew Wild2012-04-211-3/+3
|
* modulemanager: Use modulemap rather than hosts[host] (fix for when host == "*")Matthew Wild2012-04-211-1/+1
|
* modulemanager: Use api_instance rather than pluginenv.module (same thing)Matthew Wild2012-04-211-3/+3
|
* modulemanager: Allow loading a module onto "*" (part-fixes #228)Matthew Wild2012-04-211-2/+4
|
* modulemanager: Some refactoring. Deprecate module.host = "*", modules should ↵Matthew Wild2012-03-141-9/+11
| | | | call module:set_global() (which has been around since forever)
* modulemanager: Use appropriate events object for global modules when firing ↵Matthew Wild2012-03-141-1/+2
| | | | item-removed on unload
* modulemanager: include mod_c2s and mod_s2s into autoloaded modules.Florian Zeitz2012-02-241-1/+1
|
* modulemanager: load(): Return and use the correct module objectMatthew Wild2012-01-221-2/+2
|
* modulemanager: Cleanup some unused variables, imports, whitespace and add a ↵Matthew Wild2012-01-221-3/+1
| | | | comment.
* modulemanager, moduleapi: Replace hooks multitable with an event_handlers ↵Matthew Wild2012-01-221-17/+5
| | | | map stored in individual modules. Also adds module:hook_object_event() to hook events on any util.events compatible object.
* modulemanager: Drop unnecessary prosody_events localMatthew Wild2012-01-221-3/+1
|
* modulemanager: Some reorganisation. Only external change is (should be) that ↵Matthew Wild2012-01-221-62/+94
| | | | module-unloaded and module-loaded are no longer fired when reloading a module, the new event module-reloaded is fired instead.
* modulemanager: Move in-module API functions to core.moduleapi (half the file ↵Matthew Wild2012-01-221-212/+1
| | | | size, yay)
* modulemanager: Remove 'config' from module environments (no modules use it ↵Matthew Wild2011-12-131-1/+1
| | | | that I'm aware of)
* modulemanager: Fix undefined global access in handling of module.save error ↵Waqas Hussain2011-09-211-1/+1
| | | | handling.
* modulemanager: Fixed undefined global access in broadcast of item-remove ↵Waqas Hussain2011-09-171-1/+1
| | | | events on module unload.
* modulemanager: Add module:handle_items() to allow a module to more easily ↵Matthew Wild2011-08-291-0/+10
| | | | handle a list of items on a host
* modulemanager: Add module:hook_global(name, handler, priority) to hook ↵Matthew Wild2011-08-141-0/+11
| | | | global (server-wide) events
* core.modulemanager, mod_disco: Add support for XEP-0128: Service Discovery ↵Kim Alvefur2011-08-081-0/+3
| | | | Extensions
* modulemanager: Added module.path to the plugin API to let plugins determine ↵Waqas Hussain2011-02-201-1/+1
| | | | their load path.
* modulemanager: Fix disabling a module on a single hostPaul Aurich2011-02-011-2/+1
|
* modulemanager: Removed an unused variable.Waqas Hussain2011-01-051-2/+0
|
* modulemanager: Auto-load mod_offline.Waqas Hussain2010-12-271-1/+1
|
* modulemanager, mod_console: Rename mod_console -> mod_admin_telnet - add ↵Matthew Wild2010-12-171-0/+7
| | | | compatibility code to modulemanager for existing configs
* modulemanager: Allow components to inherit mod_iq. This allows modules ↵Waqas Hussain2010-12-021-1/+1
| | | | loaded on components to hook IQ stanza sub-events ("iq-set/bare/xmlns:tag", etc).
* Backed out changeset bfc47564aaef (No need for _M with module.environment)Matthew Wild2010-11-131-1/+0
|
* modulemanager: Inside plugins, have global _M as a reference to the module's ↵Matthew Wild2010-11-131-0/+1
| | | | environment
* modulemanager, usermanager: Removed hooks for the 'component-activated' ↵Waqas Hussain2010-11-101-1/+0
| | | | event (components now fire 'host-activated').
* modulemanager: Return an error when loading a module on a non-existent host, ↵Waqas Hussain2010-11-101-5/+2
| | | | don't create the host. Removes dependecy on componentmanager.
* modulemanager: load_modules_for_host(): For components, the inherited ↵Waqas Hussain2010-11-101-1/+1
| | | | modules are the intersection of the inheritable and global modules lists, not the difference.
* modulemanager: load_modules_for_host(): Inherit 'tls' and 'dialback' from ↵Waqas Hussain2010-11-101-35/+21
| | | | global modules list for components, and load the component module. Also refactored to use util.set.
* modulemanager: Fixed: Locally defined pcall wasn't returning return values ↵Waqas Hussain2010-11-101-1/+1
| | | | of the called function.
* componentmanager, hostmanager, modulemanager, mod_component: Got rid of the ↵Waqas Hussain2010-11-101-1/+0
| | | | useless hosts[*].connected property.
* modulemanager, stanza_router: Moved modulemanager.handle_stanza to ↵Waqas Hussain2010-10-161-22/+0
| | | | stanza_router, as a local function handle_unhandled_stanza. modulemanager is no longer a dependency of stanza_router.
* modulemanager: Removed another legacy events API (add_event_hook), and ↵Waqas Hussain2010-10-161-17/+0
| | | | related code.
* modulemanager: Removed legacy events API, and related code.Waqas Hussain2010-10-161-51/+7
|
* modulemanager: Removed add_iq_handler() from the plugin API.Waqas Hussain2010-10-161-3/+0
|
* modulemanager: Remove dependency on eventmanagerMatthew Wild2010-08-031-4/+4
|
* Rename mod_defaultauth -> mod_auth_internal, mod_hashpassauth -> ↵Matthew Wild2010-06-041-1/+1
| | | | 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.
* Have defaultauth load by defaultJeff Mitchell2010-05-271-1/+1
|
* modulemanager: Log proper tracebacks on errors during module load/unload.Waqas Hussain2010-04-191-1/+9
|
* Merge 0.6->0.7Matthew Wild2010-03-301-1/+1
|\
| * stanza_router, s2smanager, modulemanager: Fix for handling of the default ↵Matthew Wild2010-03-301-1/+1
| | | | | | | | namespace on stanzas, causing sometimes jabber:client to be sent over s2s, and accepted
* | Merge 0.6->0.7Matthew Wild2010-03-221-2/+2
|\|
| * Update copyright headers for 2010Matthew Wild2010-03-221-2/+2
| |
| * modulemanager: Fire item-removed events on module unload.Waqas Hussain2009-12-101-0/+9
| |