diff options
author | Adrian C. (anrxc) <anrxc@sysphere.org> | 2009-08-01 23:11:41 +0200 |
---|---|---|
committer | Adrian C. (anrxc) <anrxc@sysphere.org> | 2009-08-01 23:11:41 +0200 |
commit | 418151f57ebe56b84e35169e73912fe244871db5 (patch) | |
tree | b25f130d73deeb91d8dcb9bb8b728b3af6aaba05 /net.lua | |
parent | 1630b786d4028a8075695c026391ee80cc9b9aca (diff) | |
download | vicious-legacy-418151f57ebe56b84e35169e73912fe244871db5.tar.xz |
Make all widgets return their worker functions when called.
Diffstat (limited to 'net.lua')
-rw-r--r-- | net.lua | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -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 }) |