Commit Graph

199 Commits (51549fe050a1aec00284d1e2599c93010bc763c2)

Author SHA1 Message Date
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
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
Matthew Wild bf4925029f modulemanager: Use modulemap rather than hosts[host] (fix for when host == "*") 14 years ago
Matthew Wild e0805574e1 modulemanager: Use api_instance rather than pluginenv.module (same thing) 14 years ago
Matthew Wild 9792c6566b modulemanager: Allow loading a module onto "*" (part-fixes #228) 14 years ago
Matthew Wild ce27bd5fe5 modulemanager: Some refactoring. Deprecate module.host = "*", modules should call module:set_global() (which has been around since forever) 14 years ago
Matthew Wild 121a7f3acd modulemanager: Use appropriate events object for global modules when firing item-removed on unload 14 years ago
Florian Zeitz 4c9c8363bc modulemanager: include mod_c2s and mod_s2s into autoloaded modules. 14 years ago
Matthew Wild 11bf5edc1d modulemanager: load(): Return and use the correct module object 14 years ago
Matthew Wild c240995e51 modulemanager: Cleanup some unused variables, imports, whitespace and add a comment. 14 years ago
Matthew Wild 15a0736720 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. 14 years ago
Matthew Wild 6924d7bfb5 modulemanager: Drop unnecessary prosody_events local 14 years ago
Matthew Wild 184f681d3f 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. 14 years ago
Matthew Wild 36542853ef modulemanager: Move in-module API functions to core.moduleapi (half the file size, yay) 14 years ago
Matthew Wild 568f00002d modulemanager: Remove 'config' from module environments (no modules use it that I'm aware of) 14 years ago
Waqas Hussain c372e5d38c modulemanager: Fix undefined global access in handling of module.save error handling. 14 years ago
Waqas Hussain 108aa8061b modulemanager: Fixed undefined global access in broadcast of item-remove events on module unload. 14 years ago
Matthew Wild be9a85a08a modulemanager: Add module:handle_items() to allow a module to more easily handle a list of items on a host 15 years ago
Matthew Wild 5f57f8ff0b modulemanager: Add module:hook_global(name, handler, priority) to hook global (server-wide) events 15 years ago
Kim Alvefur f0ec18a8b7 core.modulemanager, mod_disco: Add support for XEP-0128: Service Discovery Extensions 15 years ago
Waqas Hussain fca75eb761 modulemanager: Added module.path to the plugin API to let plugins determine their load path. 15 years ago
Waqas Hussain e55a81dfae modulemanager: Added module.path to the plugin API to let plugins determine their load path. 15 years ago
Paul Aurich 78a80f36b5 modulemanager: Fix disabling a module on a single host 15 years ago
Waqas Hussain 1e5dc701c8 modulemanager: Removed an unused variable. 15 years ago
Waqas Hussain 62638e4fcd modulemanager: Removed an unused variable. 15 years ago
Waqas Hussain c23fedb91f modulemanager: Auto-load mod_offline. 15 years ago
Matthew Wild f0f0886c0d modulemanager, mod_console: Rename mod_console -> mod_admin_telnet - add compatibility code to modulemanager for existing configs 15 years ago
Waqas Hussain 109b7a0e12 modulemanager: Auto-load mod_offline. 15 years ago