aboutsummaryrefslogtreecommitdiff
path: root/net.lua
diff options
context:
space:
mode:
Diffstat (limited to 'net.lua')
-rw-r--r--net.lua3
1 files changed, 3 insertions, 0 deletions
diff --git a/net.lua b/net.lua
index 9428c5d..c9f0fb2 100644
--- a/net.lua
+++ b/net.lua
@@ -7,6 +7,7 @@
local tonumber = tonumber
local os = { time = os.time }
local io = { open = io.open }
+local setmetatable = setmetatable
local math = { floor = math.floor }
local helpers = require("vicious.helpers")
-- }}}
@@ -113,3 +114,5 @@ function worker(format, padding)
return args
end
-- }}}
+
+setmetatable(_M, { __call = function(_, ...) return worker(...) end })