From 4dad2e360c1c464feef9a8aaff6e96a7636c54b7 Mon Sep 17 00:00:00 2001 From: "Adrian C. (anrxc)" Date: Sun, 14 Mar 2010 03:37:40 +0100 Subject: API: missing warg should not break awesome --- widgets/wifi.lua | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'widgets/wifi.lua') diff --git a/widgets/wifi.lua b/widgets/wifi.lua index 65ffb79..ca578d1 100644 --- a/widgets/wifi.lua +++ b/widgets/wifi.lua @@ -22,7 +22,9 @@ module("vicious.widgets.wifi") -- {{{ Wireless widget type -local function worker(format, iface) +local function worker(format, warg) + if not warg then return end + -- Default values local winfo = { ["{ssid}"] = "N/A", @@ -41,7 +43,7 @@ local function worker(format, iface) else f:close() end - local f = io.popen(iwconfig .." ".. iface .. " 2>&1") + local f = io.popen(iwconfig .." ".. warg .. " 2>&1") local iw = f:read("*all") f:close() -- cgit v1.2.3