diff options
Diffstat (limited to 'weather.lua')
-rw-r--r-- | weather.lua | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/weather.lua b/weather.lua index e14c0ed..c8dd5ac 100644 --- a/weather.lua +++ b/weather.lua @@ -5,6 +5,7 @@ -- {{{ Grab environment local io = { popen = io.popen } +local setmetatable = setmetatable local math = { floor = math.floor } local string = { match = string.match } -- }}} @@ -73,3 +74,5 @@ function worker(format, station) return weather end -- }}} + +setmetatable(_M, { __call = function(_, ...) return worker(...) end }) |