diff options
author | Matthew Wild <mwild1@gmail.com> | 2012-03-11 12:40:32 +0000 |
---|---|---|
committer | Matthew Wild <mwild1@gmail.com> | 2012-03-11 12:40:32 +0000 |
commit | 4c152e2f3beafe251107fd66d0476d66e3fcc65c (patch) | |
tree | d36de07b470e6008e205da71aac33b98afe964f5 | |
parent | d1d691c559b8a95f6b0b16a586ca1387330af467 (diff) | |
download | prosody-4c152e2f3beafe251107fd66d0476d66e3fcc65c.tar.gz prosody-4c152e2f3beafe251107fd66d0476d66e3fcc65c.zip |
portmanager: Add get_service()
-rw-r--r-- | core/portmanager.lua | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/core/portmanager.lua b/core/portmanager.lua index 3d6dada4..f655659d 100644 --- a/core/portmanager.lua +++ b/core/portmanager.lua @@ -128,5 +128,8 @@ function register_service(service_name, service_info) return true; end +function get_service(service_name) + return services[service_name]; +end return _M; |