Software /
code /
prosody
Comparison
core/modulemanager.lua @ 2479:9c074ba1f662
modulemanager: Remove obsolete actions code
author | Matthew Wild <mwild1@gmail.com> |
---|---|
date | Thu, 21 Jan 2010 12:57:12 +0000 |
parent | 2350:443e388988e7 |
child | 2584:5091548a3805 |
comparison
equal
deleted
inserted
replaced
2478:7be72eca5666 | 2479:9c074ba1f662 |
---|---|
11 local logger = require "util.logger"; | 11 local logger = require "util.logger"; |
12 local log = logger.init("modulemanager"); | 12 local log = logger.init("modulemanager"); |
13 local eventmanager = require "core.eventmanager"; | 13 local eventmanager = require "core.eventmanager"; |
14 local config = require "core.configmanager"; | 14 local config = require "core.configmanager"; |
15 local multitable_new = require "util.multitable".new; | 15 local multitable_new = require "util.multitable".new; |
16 local register_actions = require "core.actions".register; | |
17 local st = require "util.stanza"; | 16 local st = require "util.stanza"; |
18 local pluginloader = require "util.pluginloader"; | 17 local pluginloader = require "util.pluginloader"; |
19 | 18 |
20 local hosts = hosts; | 19 local hosts = hosts; |
21 local prosody = prosody; | 20 local prosody = prosody; |
530 end | 529 end |
531 end | 530 end |
532 return result; | 531 return result; |
533 end | 532 end |
534 | 533 |
535 -------------------------------------------------------------------- | |
536 | |
537 local actions = {}; | |
538 | |
539 function actions.load(params) | |
540 --return true, "Module loaded ("..params.module.." on "..params.host..")"; | |
541 return load(params.host, params.module); | |
542 end | |
543 | |
544 function actions.unload(params) | |
545 return unload(params.host, params.module); | |
546 end | |
547 | |
548 register_actions("/modules", actions); | |
549 | |
550 return _M; | 534 return _M; |