Software / code / prosody
Comparison
core/modulemanager.lua @ 1946:0eb3835ef9bf
modulemanager: Changed api:get_host_items to include items from the global host in its result.
| author | Waqas Hussain <waqas20@gmail.com> |
|---|---|
| date | Tue, 13 Oct 2009 14:58:45 +0500 |
| parent | 1933:3884a0aac4d7 |
| child | 1960:1e674dae31ae |
comparison
equal
deleted
inserted
replaced
| 1945:adfd7f3720f5 | 1946:0eb3835ef9bf |
|---|---|
| 406 for _, item in ipairs(module.items[key] or NULL) do | 406 for _, item in ipairs(module.items[key] or NULL) do |
| 407 t_insert(result, item); | 407 t_insert(result, item); |
| 408 end | 408 end |
| 409 end | 409 end |
| 410 end | 410 end |
| 411 for mod_name, module in pairs(modulemap["*"]) do | |
| 412 module = module.module; | |
| 413 if module.items then | |
| 414 for _, item in ipairs(module.items[key] or NULL) do | |
| 415 t_insert(result, item); | |
| 416 end | |
| 417 end | |
| 418 end | |
| 411 return result; | 419 return result; |
| 412 end | 420 end |
| 413 | 421 |
| 414 -------------------------------------------------------------------- | 422 -------------------------------------------------------------------- |
| 415 | 423 |