Commit Graph

152 Commits (798aeefcfbd2db78ca949b2c47f0b37ce4d8ea6c)

Author SHA1 Message Date
Waqas Hussain 90006b5b11 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). 15 years ago
Matthew Wild a3aa9ad46c Backed out changeset bfc47564aaef (No need for _M with module.environment) 15 years ago
Matthew Wild 449a839205 modulemanager: Inside plugins, have global _M as a reference to the module's environment 15 years ago
Waqas Hussain 0bcc5e0ac7 modulemanager, usermanager: Removed hooks for the 'component-activated' event (components now fire 'host-activated'). 15 years ago
Waqas Hussain 557bad86f7 modulemanager: Return an error when loading a module on a non-existent host, don't create the host. Removes dependecy on componentmanager. 15 years ago
Waqas Hussain 24245b60d1 modulemanager: load_modules_for_host(): For components, the inherited modules are the intersection of the inheritable and global modules lists, not the difference. 15 years ago
Waqas Hussain 00a385a310 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. 15 years ago
Waqas Hussain eba95643c9 modulemanager: Fixed: Locally defined pcall wasn't returning return values of the called function. 15 years ago
Waqas Hussain 67804ef1a3 componentmanager, hostmanager, modulemanager, mod_component: Got rid of the useless hosts[*].connected property. 15 years ago
Waqas Hussain 85b44a1dfd 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. 16 years ago
Waqas Hussain 9cbf9dc9d6 modulemanager: Removed another legacy events API (add_event_hook), and related code. 16 years ago
Waqas Hussain eab4099f57 modulemanager: Removed legacy events API, and related code. 16 years ago
Waqas Hussain bfd2418b3b modulemanager: Removed add_iq_handler() from the plugin API. 16 years ago
Matthew Wild 1e67c9931c modulemanager: Remove dependency on eventmanager 16 years ago
Matthew Wild 3846f08f09 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. 16 years ago
Jeff Mitchell 534d1b91a4 Have defaultauth load by default 16 years ago
Waqas Hussain daf1f01bda modulemanager: Log proper tracebacks on errors during module load/unload. 16 years ago
Matthew Wild ad6a65efa1 stanza_router, s2smanager, modulemanager: Fix for handling of the default namespace on stanzas, causing sometimes jabber:client to be sent over s2s, and accepted 16 years ago
Matthew Wild 2bc0606453 Update copyright headers for 2010 16 years ago
Matthew Wild 9db76151d4 modulemanager: Fix traceback on unloading global modules (thanks KSid) 16 years ago
Waqas Hussain f33b657ef4 modulemanager: Load plugin libraries in the same environment as the plugins. 16 years ago
Waqas Hussain 85d418686a modulemanager: Make the plugin environment available directly (module.environment within plugins). 16 years ago
Matthew Wild 566248821c modulemanager: Remove obsolete actions code 16 years ago
Waqas Hussain f742f93609 modulemanager: Fire item-removed events on module unload. 16 years ago
Waqas Hussain 8495a4cfff modulemanager: Fixed a global access. 16 years ago
Matthew Wild 44066a0897 modulemanager, net.dns: Remove trailing whitespace 16 years ago
Matthew Wild 29d4a0246b modulemanager: Fire events module-loaded and module-unloaded, both receive a table with 'module' and 'host' fields, thanks bjc 16 years ago
Matthew Wild 0ccdad92ef 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 16 years ago
Waqas Hussain 2f8bd04c9c modulemanager: Fire item-removed events on module unload. 16 years ago
Matthew Wild 581c6ab9d1 modulemanager: api:get_option(): Handle correctly option values of boolean false, don't assume value unset 17 years ago
Waqas Hussain 9e0c207650 modulemanager: Module loading rewritten to gracefully deal with errors in module initialization. 17 years ago
Waqas Hussain 4b7031b383 modulemanager: Use componentmanager to create new components. 17 years ago
Waqas Hussain a180af24ea modulemanager: Fixed: Stanza modules were being auto-loaded for components (regression in hg:1e674dae31ae). 17 years ago
Waqas Hussain fe8f9b9c37 modulemanager: Fixed traceback on loading modules on unknown hosts. 17 years ago
Waqas Hussain bf059aa455 modulemanager: Slightly rearranged code for more robust unloading of modules. 17 years ago
Matthew Wild 6c0b6f76fb 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) 17 years ago
Waqas Hussain 157842119d modulemanager: Changed api:get_host_items to include items from the global host in its result. 17 years ago
Matthew Wild 9ff673912f modulemanager: Bump log level of unhandled non-default-namespace elements, and log their full XML 17 years ago
Matthew Wild 469e1f4416 modulemanager: Add host.modules to contain a table of modules for a host 17 years ago
Matthew Wild c3ffb26132 modulemanager: Add host.modules to contain a table of modules for a host 17 years ago
Matthew Wild 271afa3673 modulemanager: Load modules for components, too 17 years ago
Waqas Hussain be1b9e55c0 modulemanager: Fixed: Internally generated stanzas could be missing namespaces, which causes tracebacks in logging (e.g., auto-generated offline presence) 17 years ago
Waqas Hussain 87af4a64f3 modulemanager: Removed unused variables and reference to core.discomanager 17 years ago
Waqas Hussain e6991edfc5 modulemanager: Removed unnecessary code in the unload function 17 years ago
Waqas Hussain ed8982a1e9 modulemanager: Removed legacy disco#items hook 17 years ago
Waqas Hussain f56e892bf8 modulemanager: add_feature and add_identity APIs updated to use only the add_item API 17 years ago
Waqas Hussain ff0bd781d2 modulemanager: Added module API function to get all items for a given host based on a key 17 years ago
Waqas Hussain d772917f2d modulemanager: Module API functions add_item and add_feature updated to use the add_item API 17 years ago
Waqas Hussain 49c8f89be2 modulemanager: Changed the add_identity module API to accept an optional name parameter (the 'name' attribute for the <identity/> element) 17 years ago
Waqas Hussain 3900d20a7c Added: functions add_item and remove_item to add and remove items to the module API 17 years ago