Commit graph

218 commits

Author SHA1 Message Date
Waqas Hussain
32b1d54a24 stanza_router: Removed global function core_handle_stanza 2009-05-16 01:41:45 +05:00
Matthew Wild
4366e348c5 modulemanager: No need for print() 2009-05-04 19:08:55 +01:00
Matthew Wild
dda93565fe modulemanager: Don't load modules when modules_enable is false 2009-05-02 22:01:22 +01:00
Matthew Wild
370ef290d1 modulemanager: Update logger when a module becomes global 2009-04-30 01:36:46 +01:00
Waqas Hussain
d0380394a9 Fixed: modulemanager: IQs with extended elements in the default namespace could cause backtraces (related to issue #74) 2009-03-30 02:56:34 +05:00
Matthew Wild
c80f91dc02 0.3->0.4 2009-03-20 20:16:25 +00:00
Waqas Hussain
63898e5714 Let global modules add disco features for all hosts 2009-03-04 22:23:41 +05:00
Waqas Hussain
31bd01ae39 Allow global modules to hook stanza handlers 2009-03-04 22:15:46 +05:00
Waqas Hussain
0310a8be6e modulemanager initializes hosts[host] if it isn't already initialized when loading a module. 2009-02-11 17:57:48 +05:00
Matthew Wild
039df2c7e3 Fix for never checking if the first module for a host is already loaded (affects global modules) 2009-02-04 18:53:23 +00:00
Matthew Wild
c5ee166aa9 Update copyright notices for 2009 2009-01-30 17:59:26 +00:00
Matthew Wild
f2d020191f 0.2->0.3 2009-01-30 17:40:25 +00:00
Matthew Wild
bf3b96204d GPL->MIT! 2009-01-30 17:22:56 +00:00
Matthew Wild
62890f2d66 modulemanager: Really fix call_module_method to work properly 2009-01-29 02:01:09 +00:00
Matthew Wild
6057fe64c9 modulemanager: Add get_host_type() API method, and fix up call_module_method to work properly 2009-01-29 01:58:11 +00:00
Matthew Wild
9b0ee1a5fb modulemanager: Add module:set_global() as a cleaner way for a module to declare itself 'global' 2009-01-24 20:29:25 +00:00
Matthew Wild
f3ccd47096 core.modulemanager: Some refactoring to make upcoming changes a little easier 2009-01-24 01:15:40 +00:00
Matthew Wild
8d1005cf4e modulemanager: Comment out logging of modules hooking stanzas, too noisy 2009-01-16 05:38:03 +00:00
Waqas Hussain
15cbc4d03e modulemanager: Check for syntax errors before reloading a module 2009-01-13 23:16:39 +05:00
Waqas Hussain
a138bcd591 modulemanager: Added reload support, with callbacks for saving and restoring state 2009-01-13 22:37:07 +05:00
Matthew Wild
4dc4d175d1 Automated merge with http://waqas.ath.cx:8000/ 2009-01-13 15:29:00 +00:00
Waqas Hussain
bb7d8604f2 modulemanager: Fixed error on unloading modules with no handlers 2009-01-13 20:19:52 +05:00
Matthew Wild
9ffcaaa1f9 Add core.actions for managing server 'actions'; and make modulemanager register actions 'load' and 'unload' 2009-01-12 04:05:10 +00:00
Matthew Wild
ea643d3c90 modulemanager: Change pairs() to ipairs() to allow ordered module loading 2009-01-12 03:27:18 +00:00
Waqas Hussain
c8a5213462 modulemanager: Per-host event hooks for plugins - solves issue 41 2009-01-09 23:01:21 +05:00
Matthew Wild
96f91c20ad Automated merge with http://waqas.ath.cx:8000/ 2009-01-07 15:14:24 +00:00
Waqas Hussain
7c24c84226 modulemanager: module.unload now gets called when modules are being unloaded 2009-01-07 20:03:59 +05:00
Matthew Wild
046e69447e Remove warning of already-loaded modules at startup 2009-01-04 02:55:59 +00:00
Waqas Hussain
9a19a95fe8 Modulemanager: Basic modules can now be unloaded correctly 2009-01-03 18:45:51 +05:00
Matthew Wild
8661b3a502 Fix for not loading global modules when host-specific modules are specified in config 2008-12-24 18:48:09 +00:00
Matthew Wild
d3ad4a5123 0.1 -> 0.2 2008-12-10 15:44:03 +00:00
Waqas Hussain
17f4b2de32 Don't try processing stanzas not of type get or set in module manager 2008-12-08 21:06:41 +05:00
Matthew Wild
2395f6511a Merge from waqas 2008-12-06 23:23:08 +00:00
Matthew Wild
c16c3b6f67 Temporary hack for global modules 2008-12-06 23:15:48 +00:00
Waqas Hussain
09916b3289 Removed unused variables 2008-12-07 03:14:30 +05:00
Waqas Hussain
137ef16316 Combined and merged similar code 2008-12-07 03:10:47 +05:00
Waqas Hussain
f6e8a1e8bf Removed pre-multitable code from module manager 2008-12-07 02:56:17 +05:00
Matthew Wild
6f01a1604c Merge from waqas 2008-12-06 20:25:51 +00:00
Waqas Hussain
9aba6cb646 Changed module manager to use multitable (initial commit) 2008-12-07 01:06:10 +05:00
Matthew Wild
de04023210 Fix add_event_hook in module API 2008-12-06 19:51:10 +00:00
Matthew Wild
0f1d3c4074 Move module loading to modulemanager 2008-12-06 04:03:33 +00:00
Matthew Wild
dfeabed19f Add hostmanager, and eventmanager 2008-12-06 03:41:49 +00:00
Waqas Hussain
fcf33a735b Added function add_feature to modules API (for adding disco features) 2008-12-04 20:07:22 +05:00
Matthew Wild
0c5cc83112 Insert copyright/license headers 2008-12-03 14:39:07 +00:00
Matthew Wild
7271c148ce Update Makefile to now pass config paths to prosody. Update prosody, modulemanager and connectionlisteners to obey these paths. 2008-11-29 03:27:50 +00:00
Matthew Wild
ce18fc957d is_loaded() and incomplete unload() for modules 2008-11-27 16:52:30 +00:00
Matthew Wild
a153b3c267 Bumper commit for the new modulemanager API \o/ Updates all the modules, though some more changes may be in store. 2008-11-27 03:12:12 +00:00
Waqas Hussain
f1878f2666 Check to prevent error on IQs from completely unhandled origins 2008-11-23 10:39:13 +05:00
Matthew Wild
ff3d9317b7 Typo prevented modulemanager.load() from returning the error if load failed. 2008-11-23 05:14:37 +00:00
Waqas Hussain
2ac8168e29 Check to prevent error for IQs from completely unhandled origins 2008-11-22 23:14:31 +05:00