From 41cc2c0e27e6a0860d21754ed9d13f6cd61254ac Mon Sep 17 00:00:00 2001 From: Arvydas Sidorenko Date: Fri, 15 Jun 2012 18:07:05 +0200 Subject: Ported vicious.widgets module to lua 5.2 Signed-off-by: Arvydas Sidorenko Signed-off-by: Adrian C. (anrxc) --- widgets/mpd.lua | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'widgets/mpd.lua') diff --git a/widgets/mpd.lua b/widgets/mpd.lua index 143eec9..e4bcb0b 100644 --- a/widgets/mpd.lua +++ b/widgets/mpd.lua @@ -13,7 +13,8 @@ local helpers = require("vicious.helpers") -- Mpd: provides Music Player Daemon information -module("vicious.widgets.mpd") +-- vicious.widgets.mpd +local mpd = {} -- {{{ MPD widget type @@ -60,4 +61,4 @@ local function worker(format, warg) end -- }}} -setmetatable(_M, { __call = function(_, ...) return worker(...) end }) +return setmetatable(mpd, { __call = function(_, ...) return worker(...) end }) -- cgit v1.2.3