Software / code / prosody
Comparison
core/modulemanager.lua @ 672:7db1044d2fab
Remove warning of already-loaded modules at startup
| author | Matthew Wild <mwild1@gmail.com> |
|---|---|
| date | Sun, 04 Jan 2009 02:55:59 +0000 |
| parent | 670:d5cf10b7fc44 |
| child | 675:cc82394fea22 |
comparison
equal
deleted
inserted
replaced
| 671:c7519f0c9a2c | 672:7db1044d2fab |
|---|---|
| 77 | 77 |
| 78 -- Load modules from just this host | 78 -- Load modules from just this host |
| 79 local modules_enabled = config.get(host, "core", "modules_enabled"); | 79 local modules_enabled = config.get(host, "core", "modules_enabled"); |
| 80 if modules_enabled then | 80 if modules_enabled then |
| 81 for _, module in pairs(modules_enabled) do | 81 for _, module in pairs(modules_enabled) do |
| 82 load(host, module); | 82 if not is_loaded(host, module) then |
| 83 load(host, module); | |
| 84 end | |
| 83 end | 85 end |
| 84 end | 86 end |
| 85 end | 87 end |
| 86 eventmanager.add_event_hook("host-activated", load_modules_for_host); | 88 eventmanager.add_event_hook("host-activated", load_modules_for_host); |
| 87 -- | 89 -- |