X-Git-Url: https://git.madduck.net/etc/awesome.git/blobdiff_plain/1ebfa854f95e3abcd8b41a1798646a9db6e8408b..1b12fd2319e1cd02706fd3a7ec0f0203ca2782d2:/widget/imap.lua diff --git a/widget/imap.lua b/widget/imap.lua index 84a1cd0..02561e6 100644 --- a/widget/imap.lua +++ b/widget/imap.lua @@ -1,9 +1,8 @@ - --[[ - - Licensed under GNU General Public License v2 - * (c) 2013, Luke Bonham - + + Licensed under GNU General Public License v2 + * (c) 2013, Luke Bonham + --]] local helpers = require("lain.helpers") @@ -60,8 +59,6 @@ local function factory(args) helpers.async(curl, function(f) _, mailcount = string.gsub(f, "%d+", "") - _ = nil - widget = imap.widget settings() @@ -71,7 +68,7 @@ local function factory(args) else nt = mail .. " has " .. mailcount .. " new messages" end - naughty.notify({ preset = mail_notification_preset, text = nt }) + naughty.notify { preset = mail_notification_preset, text = nt } end helpers.set_map(mail, mailcount)