Skip to content

Commit

Permalink
Fixed mcabber vicious plugin.
Browse files Browse the repository at this point in the history
  • Loading branch information
geektophe committed Oct 21, 2013
1 parent 304845e commit acf4a01
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions widgets/vicious/mcabber.lua
Original file line number Diff line number Diff line change
Expand Up @@ -46,11 +46,15 @@ end

-- {{{ Date widget type
local function worker(format, warg)
if not mcabber_running() or not awful.util.file_readable(statefile) then
if not mcabber_running() then
return '<span color="white" bgcolor="grey" weight="bold"> n/a </span>'
end

local unread = mcabber_get_unread_buffers()
local unread = 0
if awful.util.file_readable(statefile) then
unread = mcabber_get_unread_buffers()
end

if unread > 0 then
return '<span color="white" bgcolor="red" weight="bold"> ' .. unread .. ' </span>'
else
Expand Down

0 comments on commit acf4a01

Please sign in to comment.