aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatthew Wild <mwild1@gmail.com>2012-04-28 01:27:46 +0100
committerMatthew Wild <mwild1@gmail.com>2012-04-28 01:27:46 +0100
commit0ed5d7e68ca75f8c034f26f81c99a164290df21f (patch)
treebe5eac161771abb8112ad1003efc0fc7bf974042
parentd468617f5d11c8cc13ef82c5cff6d2e53e2f4019 (diff)
downloadprosody-0ed5d7e68ca75f8c034f26f81c99a164290df21f.tar.gz
prosody-0ed5d7e68ca75f8c034f26f81c99a164290df21f.zip
portmanager: Rename activate_service() to activate() (to match deactivate())
-rw-r--r--core/portmanager.lua4
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