naughty: Fix replaces_id
Replacing a popup only worked when it wasn't the newest notification we had. Fix this to also work if no new notification showed up in between. Signed-off-by: Uli Schlachter <psychon@znc.in>
This commit is contained in:
parent
5accf0014b
commit
f3f01b82d9
|
@ -324,7 +324,7 @@ function notify(args)
|
|||
destroy(obj)
|
||||
end
|
||||
-- ... may use its ID
|
||||
if args.replaces_id < counter then
|
||||
if args.replaces_id <= counter then
|
||||
notification.id = args.replaces_id
|
||||
else
|
||||
counter = counter + 1
|
||||
|
|
Loading…
Reference in New Issue