Commit Graph

93 Commits (dbf5462378e9cdfbba714b5bcbe676d4f63fa135)

Author SHA1 Message Date
Matthew Wild a977acec89 modulemanager: Expose api table to allow others to extend the module API 17 years ago
Waqas Hussain 3f141a44c2 modulemanager: Enabled access to the module API from plugin libraries 17 years ago
Matthew Wild 4e32c53614 modulemanager: Fix copy/paste error, should be name instead of module_name 17 years ago
Matthew Wild e418f8a9c6 modulemanager: Call 'load' method when loading a module 17 years ago
Waqas Hussain dc5b5334b8 modulemanager: Added simple module:require implementation 17 years ago
Waqas Hussain 547e4f28d6 modulemanager: Removed unused function get_module_filename(name) 17 years ago
Waqas Hussain 376256439e modulemanager: Changed to use util.pluginloader 17 years ago
Waqas Hussain 100822df21 modulemanager: Change the ideitity attribute typ to type 17 years ago
Waqas Hussain cfb4654a31 modulemanager: Added function add_identity(category, type) to the modules API 17 years ago
Matthew Wild aa79672dbd modulemanager: Use module_name in log entry to fix 'error initialising module "nil"' error 17 years ago
Waqas Hussain 1878c49948 modulemanager: Allow setting a priority while adding an event handler via the module:hook API 17 years ago
Matthew Wild 78259b97be modulemanager: Don't require xmlns to be non-nil 17 years ago
Matthew Wild 650013e7ec modulemanager: module:log() -> self:log() fix 17 years ago
Matthew Wild ca4e395f0c modulemanager: Allow setting priority of stanza handlers 17 years ago
Matthew Wild 114a89b664 modulemanager: Add module:hook([xmlns, ] name, handler) which uses new stanza events 17 years ago
Waqas Hussain 8805419906 modulemanager: Load mod_message, mod_iq and mod_presence implicitly 17 years ago
Waqas Hussain 27593d477f modulemanager: Keep track of event handlers added by module:hook, and remove them on module unload 17 years ago
Waqas Hussain 25a09a4d95 modulemanager: Stopped using core.eventmanager in module:fire_event 17 years ago
Waqas Hussain 3ca6b44ad6 modulemanager: module:fire_event now fires on the global and host-specific events objects as well 17 years ago
Waqas Hussain 2d5433f130 modulemanager: Made some code more concise 17 years ago
Waqas Hussain d7084c6651 modulemanager: module:hook now allows global modules to hook events on the prosody.events object 17 years ago
Waqas Hussain 777a395b47 modulemanager: Added hook(event, handler) to the plugin API 17 years ago
Matthew Wild 05afac6dad modulemanager: Add module:fire_event() to module API 17 years ago
Waqas Hussain 2a3983a113 modulemanager: require util.stanza 17 years ago
Waqas Hussain c3b04f5f09 modulemanager: Don't close the stream on unhandled stream:features 17 years ago
Waqas Hussain 32b1d54a24 stanza_router: Removed global function core_handle_stanza 17 years ago
Matthew Wild dda93565fe modulemanager: Don't load modules when modules_enable is false 17 years ago
Matthew Wild 370ef290d1 modulemanager: Update logger when a module becomes global 17 years ago
Matthew Wild 4366e348c5 modulemanager: No need for print() 17 years ago
Waqas Hussain d0380394a9 Fixed: modulemanager: IQs with extended elements in the default namespace could cause backtraces (related to issue #74) 17 years ago
Matthew Wild c80f91dc02 0.3->0.4 17 years ago
Waqas Hussain 63898e5714 Let global modules add disco features for all hosts 17 years ago
Waqas Hussain 31bd01ae39 Allow global modules to hook stanza handlers 17 years ago
Waqas Hussain 0310a8be6e modulemanager initializes hosts[host] if it isn't already initialized when loading a module. 17 years ago
Matthew Wild 039df2c7e3 Fix for never checking if the first module for a host is already loaded (affects global modules) 17 years ago
Matthew Wild c5ee166aa9 Update copyright notices for 2009 17 years ago
Matthew Wild f2d020191f 0.2->0.3 17 years ago
Matthew Wild bf3b96204d GPL->MIT! 17 years ago
Matthew Wild 62890f2d66 modulemanager: Really fix call_module_method to work properly 17 years ago
Matthew Wild 6057fe64c9 modulemanager: Add get_host_type() API method, and fix up call_module_method to work properly 17 years ago
Matthew Wild 9b0ee1a5fb modulemanager: Add module:set_global() as a cleaner way for a module to declare itself 'global' 17 years ago
Matthew Wild f3ccd47096 core.modulemanager: Some refactoring to make upcoming changes a little easier 17 years ago
Matthew Wild 8d1005cf4e modulemanager: Comment out logging of modules hooking stanzas, too noisy 17 years ago
Waqas Hussain 15cbc4d03e modulemanager: Check for syntax errors before reloading a module 17 years ago
Waqas Hussain a138bcd591 modulemanager: Added reload support, with callbacks for saving and restoring state 17 years ago
Waqas Hussain bb7d8604f2 modulemanager: Fixed error on unloading modules with no handlers 17 years ago
Matthew Wild 9ffcaaa1f9 Add core.actions for managing server 'actions'; and make modulemanager register actions 'load' and 'unload' 17 years ago
Matthew Wild ea643d3c90 modulemanager: Change pairs() to ipairs() to allow ordered module loading 17 years ago
Waqas Hussain c8a5213462 modulemanager: Per-host event hooks for plugins - solves issue 41 17 years ago
Waqas Hussain 7c24c84226 modulemanager: module.unload now gets called when modules are being unloaded 17 years ago