diff options
author | Adrian C. (anrxc) <anrxc@sysphere.org> | 2010-03-14 03:37:40 +0100 |
---|---|---|
committer | Adrian C. (anrxc) <anrxc@sysphere.org> | 2010-03-14 03:37:40 +0100 |
commit | 4dad2e360c1c464feef9a8aaff6e96a7636c54b7 (patch) | |
tree | 03290f705cef2ec761a0a1ee46b3bc38cb08e0ea /widgets/wifi.lua | |
parent | 237470c8f45190b213e3a173ce6ae1a74b3e11fe (diff) | |
download | vicious-legacy-4dad2e360c1c464feef9a8aaff6e96a7636c54b7.tar.xz |
API: missing warg should not break awesome
Diffstat (limited to 'widgets/wifi.lua')
-rw-r--r-- | widgets/wifi.lua | 6 |
1 files changed, 4 insertions, 2 deletions
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() |