X-Git-Url: https://git.madduck.net/etc/awesome.git/blobdiff_plain/8d3868d7ce528cfc075e246c8935bae2724e0868..586c54a25750fd90d91c15ac8eb818b2613de582:/widget/mpd.lua?ds=inline diff --git a/widget/mpd.lua b/widget/mpd.lua index b5281b0..88b9937 100644 --- a/widget/mpd.lua +++ b/widget/mpd.lua @@ -23,7 +23,7 @@ local setmetatable = setmetatable -- lain.widget.mpd local mpd = {} -local function worker(args) +local function factory(args) local args = args or {} local timeout = args.timeout or 2 local password = (args.password and #args.password > 0 and string.format("password %s\\n", args.password)) or "" @@ -134,4 +134,4 @@ local function worker(args) return mpd end -return setmetatable(mpd, { __call = function(_, ...) return worker(...) end }) +return setmetatable(mpd, { __call = function(_, ...) return factory(...) end })