Commit graph

160 commits

Author SHA1 Message Date
Matthew Wild
be9a85a08a modulemanager: Add module:handle_items() to allow a module to more easily handle a list of items on a host 2011-08-29 13:09:29 -04:00
Matthew Wild
5f57f8ff0b modulemanager: Add module:hook_global(name, handler, priority) to hook global (server-wide) events 2011-08-14 13:56:13 -04:00
Kim Alvefur
f0ec18a8b7 core.modulemanager, mod_disco: Add support for XEP-0128: Service Discovery Extensions 2011-08-08 18:23:53 +02:00
Waqas Hussain
fca75eb761 modulemanager: Added module.path to the plugin API to let plugins determine their load path. 2011-02-20 20:06:38 +05:00
Paul Aurich
78a80f36b5 modulemanager: Fix disabling a module on a single host 2011-02-01 17:56:16 -08:00
Waqas Hussain
1e5dc701c8 modulemanager: Removed an unused variable. 2011-01-05 06:16:27 +05:00
Waqas Hussain
c23fedb91f modulemanager: Auto-load mod_offline. 2010-12-27 06:10:34 +05:00
Matthew Wild
f0f0886c0d modulemanager, mod_console: Rename mod_console -> mod_admin_telnet - add compatibility code to modulemanager for existing configs 2010-12-17 12:44:24 +00:00
Waqas Hussain
ebca6cbbd0 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). 2010-12-02 16:32:42 +05:00
Matthew Wild
a3aa9ad46c Backed out changeset bfc47564aaef (No need for _M with module.environment) 2010-11-13 04:12:40 +00:00
Matthew Wild
449a839205 modulemanager: Inside plugins, have global _M as a reference to the module's environment 2010-11-13 04:09:14 +00:00
Waqas Hussain
0bcc5e0ac7 modulemanager, usermanager: Removed hooks for the 'component-activated' event (components now fire 'host-activated'). 2010-11-10 22:27:09 +05:00
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. 2010-11-10 20:14:33 +05:00
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. 2010-11-10 19:54:38 +05:00
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. 2010-11-10 18:06:51 +05:00
Waqas Hussain
eba95643c9 modulemanager: Fixed: Locally defined pcall wasn't returning return values of the called function. 2010-11-10 05:30:46 +05:00
Waqas Hussain
67804ef1a3 componentmanager, hostmanager, modulemanager, mod_component: Got rid of the useless hosts[*].connected property. 2010-11-10 03:39:38 +05:00
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. 2010-10-16 08:34:32 +05:00
Waqas Hussain
9cbf9dc9d6 modulemanager: Removed another legacy events API (add_event_hook), and related code. 2010-10-16 08:15:11 +05:00
Waqas Hussain
eab4099f57 modulemanager: Removed legacy events API, and related code. 2010-10-16 07:31:50 +05:00
Waqas Hussain
bfd2418b3b modulemanager: Removed add_iq_handler() from the plugin API. 2010-10-16 06:25:55 +05:00
Matthew Wild
1e67c9931c modulemanager: Remove dependency on eventmanager 2010-08-03 10:52:53 +01:00
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. 2010-06-04 14:33:36 +01:00
Jeff Mitchell
534d1b91a4 Have defaultauth load by default 2010-05-27 09:20:08 -04:00
Waqas Hussain
daf1f01bda modulemanager: Log proper tracebacks on errors during module load/unload. 2010-04-19 18:29:10 +05:00
Matthew Wild
ef919e1417 Merge 0.6->0.7 2010-03-30 19:45:56 +01:00
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 2010-03-30 19:40:16 +01:00
Matthew Wild
46c0b8c7f9 Merge 0.6->0.7 2010-03-22 17:24:55 +00:00
Matthew Wild
2bc0606453 Update copyright headers for 2010 2010-03-22 17:06:15 +00:00
Matthew Wild
9db76151d4 modulemanager: Fix traceback on unloading global modules (thanks KSid) 2010-02-18 16:22:50 +00:00
Waqas Hussain
f33b657ef4 modulemanager: Load plugin libraries in the same environment as the plugins. 2010-02-11 05:36:03 +05:00
Waqas Hussain
85d418686a modulemanager: Make the plugin environment available directly (module.environment within plugins). 2010-02-11 05:34:53 +05:00
Matthew Wild
566248821c modulemanager: Remove obsolete actions code 2010-01-21 12:57:12 +00:00
Waqas Hussain
f742f93609 modulemanager: Fire item-removed events on module unload. 2009-12-10 03:02:04 +05:00
Waqas Hussain
8495a4cfff modulemanager: Fixed a global access. 2009-12-10 03:00:16 +05:00
Matthew Wild
44066a0897 modulemanager, net.dns: Remove trailing whitespace 2009-12-02 20:32:44 +00:00
Matthew Wild
29d4a0246b modulemanager: Fire events module-loaded and module-unloaded, both receive a table with 'module' and 'host' fields, thanks bjc 2009-12-01 19:57:33 +00:00
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 2009-11-23 16:07:33 +00:00
Waqas Hussain
2f8bd04c9c modulemanager: Fire item-removed events on module unload. 2009-12-10 03:02:04 +05:00
Matthew Wild
581c6ab9d1 modulemanager: api:get_option(): Handle correctly option values of boolean false, don't assume value unset 2009-11-08 15:09:11 +00:00
Waqas Hussain
9e0c207650 modulemanager: Module loading rewritten to gracefully deal with errors in module initialization. 2009-10-18 05:17:07 +05:00
Waqas Hussain
4b7031b383 modulemanager: Use componentmanager to create new components. 2009-10-18 03:15:33 +05:00
Waqas Hussain
a180af24ea modulemanager: Fixed: Stanza modules were being auto-loaded for components (regression in hg:1e674dae31ae). 2009-10-18 01:19:03 +05:00
Waqas Hussain
fe8f9b9c37 modulemanager: Fixed traceback on loading modules on unknown hosts. 2009-10-17 23:50:09 +05:00
Waqas Hussain
bf059aa455 modulemanager: Slightly rearranged code for more robust unloading of modules. 2009-10-17 23:48:30 +05:00
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) 2009-10-16 22:12:46 +01:00
Waqas Hussain
157842119d modulemanager: Changed api:get_host_items to include items from the global host in its result. 2009-10-13 14:58:45 +05:00
Matthew Wild
9ff673912f modulemanager: Bump log level of unhandled non-default-namespace elements, and log their full XML 2009-10-06 23:14:01 +01:00
Matthew Wild
e1543fa5b0 Merge with 0.5 2009-10-05 14:42:56 +01:00
Matthew Wild
c3ffb26132 modulemanager: Add host.modules to contain a table of modules for a host 2009-10-05 10:42:36 +01:00