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
|
109b7a0e12
|
modulemanager: Auto-load mod_offline.
|
15 years ago |
Matthew Wild
|
e4dcba9647
|
modulemanager, mod_console: Rename mod_console -> mod_admin_telnet - add compatibility code to modulemanager for existing configs
|
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
|
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 |
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).
|
15 years ago |
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.
|
15 years ago |
Waqas Hussain
|
9cbf9dc9d6
|
modulemanager: Removed another legacy events API (add_event_hook), and related code.
|
15 years ago |
Waqas Hussain
|
eab4099f57
|
modulemanager: Removed legacy events API, and related code.
|
15 years ago |
Waqas Hussain
|
bfd2418b3b
|
modulemanager: Removed add_iq_handler() from the plugin API.
|
15 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 |