aboutsummaryrefslogtreecommitdiffstats
path: root/core
diff options
context:
space:
mode:
Diffstat (limited to 'core')
-rw-r--r--core/sessionmanager.lua10
1 files changed, 4 insertions, 6 deletions
diff --git a/core/sessionmanager.lua b/core/sessionmanager.lua
index f2542ed2..b257e532 100644
--- a/core/sessionmanager.lua
+++ b/core/sessionmanager.lua
@@ -1,11 +1,9 @@
local tonumber, tostring = tonumber, tostring;
-local ipairs = ipairs;
+local ipairs, print= ipairs, print;
-local m_random = math.random;
-local format = string.format;
-
-local print = print;
+local m_random = import("math", "random");
+local format = import("string", "format");
local hosts = hosts;
@@ -79,7 +77,7 @@ function streamopened(session, attr)
end
send("</stream:features>");
- log("info", "core", "Stream opened successfully");
+ log("info", "Stream opened successfully");
session.notopen = nil;
end