diff options
author | Matthew Wild <mwild1@gmail.com> | 2012-04-28 01:27:46 +0100 |
---|---|---|
committer | Matthew Wild <mwild1@gmail.com> | 2012-04-28 01:27:46 +0100 |
commit | 7a8047ba3e200045b078c8818b50869a3df9ba88 (patch) | |
tree | be5eac161771abb8112ad1003efc0fc7bf974042 | |
parent | ed03e1adb93034e888558abebd257faf41cb3ad3 (diff) | |
download | prosody-7a8047ba3e200045b078c8818b50869a3df9ba88.tar.gz prosody-7a8047ba3e200045b078c8818b50869a3df9ba88.zip |
portmanager: Rename activate_service() to activate() (to match deactivate())
-rw-r--r-- | core/portmanager.lua | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/core/portmanager.lua b/core/portmanager.lua index 8f26c57e..337b8f4b 100644 --- a/core/portmanager.lua +++ b/core/portmanager.lua @@ -71,7 +71,7 @@ end); --- Public API -function activate_service(service_name) +function activate(service_name) local service_info = services[service_name][1]; if not service_info then return nil, "Unknown service: "..service_name; @@ -146,7 +146,7 @@ function register_service(service_name, service_info) if not active_services:get(service_name) then log("debug", "No active service for %s, activating...", service_name); - local ok, err = activate_service(service_name); + local ok, err = activate(service_name); if not ok then log("error", "Failed to activate service '%s': %s", service_name, err or "unknown error"); end |