Fix naughty.reset_timeout
Signed-off-by: Uli Schlachter <psychon@znc.in>
This commit is contained in:
parent
9db539fbf2
commit
a4e598d444
|
@ -325,7 +325,7 @@ end
|
||||||
function naughty.reset_timeout(notification, new_timeout)
|
function naughty.reset_timeout(notification, new_timeout)
|
||||||
if notification.timer then notification.timer:stop() end
|
if notification.timer then notification.timer:stop() end
|
||||||
|
|
||||||
local timeout = timeout or notification.timeout
|
local timeout = new_timeout or notification.timeout
|
||||||
set_timeout(notification, timeout)
|
set_timeout(notification, timeout)
|
||||||
notification.timeout = timeout
|
notification.timeout = timeout
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue