# HG changeset patch # User Matthew Wild # Date 1276514785 -3600 # Node ID bcd7dc51a5e355ef278798640f5ba78e8a59700a # Parent 26bb69a57749e331eb9ed8627614ec4edb8f6abe mod_blocking: Fix to iterate over blocklist correctly when removing a JID diff -r 26bb69a57749 -r bcd7dc51a5e3 mod_blocking/mod_blocking.lua --- a/mod_blocking/mod_blocking.lua Mon Jun 14 12:25:53 2010 +0100 +++ b/mod_blocking/mod_blocking.lua Mon Jun 14 12:26:25 2010 +0100 @@ -71,7 +71,7 @@ if not default_list then return; end local items = default_list.items; local item; - for i=#items,1 do -- order must be unique + for i=#items,1,-1 do -- order must be unique item = items[i]; if item.type == "jid" and item.action == "deny" then table.remove(items, i);