aboutsummaryrefslogtreecommitdiff
path: root/wifi.lua
diff options
context:
space:
mode:
Diffstat (limited to 'wifi.lua')
-rw-r--r--wifi.lua3
1 files changed, 3 insertions, 0 deletions
diff --git a/wifi.lua b/wifi.lua
index 35289dd..0e284c8 100644
--- a/wifi.lua
+++ b/wifi.lua
@@ -5,6 +5,7 @@
-- {{{ Grab environment
local io = { popen = io.popen }
+local setmetatable = setmetatable
local string = {
find = string.find,
match = string.match
@@ -60,3 +61,5 @@ function worker(format, iface)
return winfo
end
-- }}}
+
+setmetatable(_M, { __call = function(_, ...) return worker(...) end })