aboutsummaryrefslogtreecommitdiff
path: root/mboxc.lua
diff options
context:
space:
mode:
Diffstat (limited to 'mboxc.lua')
-rw-r--r--mboxc.lua3
1 files changed, 3 insertions, 0 deletions
diff --git a/mboxc.lua b/mboxc.lua
index b549b69..73dbe4e 100644
--- a/mboxc.lua
+++ b/mboxc.lua
@@ -5,6 +5,7 @@
-- {{{ Grab environment
local io = { open = io.open }
+local setmetatable = setmetatable
local string = { find = string.find }
-- }}}
@@ -55,3 +56,5 @@ function worker(format, mbox)
return {total, old, new}
end
-- }}}
+
+setmetatable(_M, { __call = function(_, ...) return worker(...) end })