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:
Uli Schlachter 2011-09-07 21:41:47 +02:00
parent 5accf0014b
commit f3f01b82d9
1 changed files with 1 additions and 1 deletions

View File

@ -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