Software / code / prosody
Comparison
core/modulemanager.lua @ 1709:51cf905414a2
modulemanager: Removed unused variables and reference to core.discomanager
| author | Waqas Hussain <waqas20@gmail.com> |
|---|---|
| date | Tue, 18 Aug 2009 12:55:37 +0500 |
| parent | 1708:ac792c01dfcb |
| child | 1733:d55ee6c66910 |
comparison
equal
deleted
inserted
replaced
| 1708:ac792c01dfcb | 1709:51cf905414a2 |
|---|---|
| 4 -- | 4 -- |
| 5 -- This project is MIT/X11 licensed. Please see the | 5 -- This project is MIT/X11 licensed. Please see the |
| 6 -- COPYING file in the source package for more information. | 6 -- COPYING file in the source package for more information. |
| 7 -- | 7 -- |
| 8 | 8 |
| 9 | |
| 10 | |
| 11 local plugin_dir = CFG_PLUGINDIR or "./plugins/"; | 9 local plugin_dir = CFG_PLUGINDIR or "./plugins/"; |
| 12 | 10 |
| 13 local logger = require "util.logger"; | 11 local logger = require "util.logger"; |
| 14 local log = logger.init("modulemanager"); | 12 local log = logger.init("modulemanager"); |
| 15 local addDiscoInfoHandler = require "core.discomanager".addDiscoInfoHandler; | |
| 16 local eventmanager = require "core.eventmanager"; | 13 local eventmanager = require "core.eventmanager"; |
| 17 local config = require "core.configmanager"; | 14 local config = require "core.configmanager"; |
| 18 local multitable_new = require "util.multitable".new; | 15 local multitable_new = require "util.multitable".new; |
| 19 local register_actions = require "core.actions".register; | 16 local register_actions = require "core.actions".register; |
| 20 local st = require "util.stanza"; | 17 local st = require "util.stanza"; |
| 48 local stanza_handlers = multitable_new(); | 45 local stanza_handlers = multitable_new(); |
| 49 local handler_info = {}; | 46 local handler_info = {}; |
| 50 | 47 |
| 51 local modulehelpers = setmetatable({}, { __index = _G }); | 48 local modulehelpers = setmetatable({}, { __index = _G }); |
| 52 | 49 |
| 53 local features_table = multitable_new(); | |
| 54 local identities_table = multitable_new(); | |
| 55 local handler_table = multitable_new(); | 50 local handler_table = multitable_new(); |
| 56 local hooked = multitable_new(); | 51 local hooked = multitable_new(); |
| 57 local hooks = multitable_new(); | 52 local hooks = multitable_new(); |
| 58 local event_hooks = multitable_new(); | 53 local event_hooks = multitable_new(); |
| 59 | 54 |