# HG changeset patch # User Kim Alvefur # Date 1311117394 -7200 # Node ID 7ec6df0e0ed0f3e2857c87faeb8bf1fcffc07cd3 # Parent ce687757ce3dcd5c365654371208c88f9f84b820 plugins.xeps: Fix previous commit (it was wrong side of the loopy loops) diff -r ce687757ce3d -r 7ec6df0e0ed0 plugins/xeps.lua --- a/plugins/xeps.lua Wed Jul 20 01:11:11 2011 +0200 +++ b/plugins/xeps.lua Wed Jul 20 01:16:34 2011 +0200 @@ -79,14 +79,14 @@ for k,v in string.gmatch(b,"<(%w+)>(.-)") do currxep[k] = v; end + if xeps_short[currxep.shortname] == nil then + xeps_short[currxep.shortname] = currxep.number; + elseif xeps_short[currxep.shortname] then + xeps_short[currxep.shortname] = false; -- kill dupes + end xeps[currxep.number] = { }; for k, v in pairs(currxep) do xeps[currxep.number][k] = v; - if xeps_short[currxep.shortname] == nil then - xeps_short[currxep.shortname] = currxep.number; - elseif xeps_short[currxep.shortname] then - xeps_short[currxep.shortname] = false; -- kill dupes - end end end xeps["0028"] = { number = "0028", name = "XSF Plans for World Domination", type="Top Secret", status = "Hidden", updated = "Work ongoing" };