# HG changeset patch # User Nenue # Date 1451125104 18000 # Node ID 6fcfe60bbd0f838729d33c974b97801eeba336e8 # Parent 42e74b72726db89fd8871d2fc9749a694ff5b4e0 Another fix to /dvn tag assignments. It also outputs the channel signature and index so you know you aren't psychotic. diff -r 42e74b72726d -r 6fcfe60bbd0f Devian.lua --- a/Devian.lua Fri Dec 25 13:56:20 2015 -0500 +++ b/Devian.lua Sat Dec 26 05:18:24 2015 -0500 @@ -68,10 +68,10 @@ end if D.tags[tag][channel.index] then D.tags[tag][channel.index] = nil - D:Print('Removed |cFFFFFF00'..tag..'|r from |cFF00FFFF'.. dest .. '|r') + D:Print('Removed |cFFFFFF00'..tag..'|r to |cFF00FFFF['..channel.index..', '..channel.signature..']|r') else D.tags[tag][channel.index] = channel.index - D:Print('Assigning |cFFFFFF00'..tag..'|r to |cFF00FFFF'.. dest .. '|r') + D:Print('Assigning |cFFFFFF00'..tag..'|r to |cFF00FFFF['..channel.index..', '..channel.signature..']|r') end else @@ -471,16 +471,19 @@ end -- was an index given? - if not i then + if D.sigID[t_info.signature] then + i = D.sigID[t_info.signature] + -- the signature has one + elseif not i then i = D.num_channels + 1 t_info.index = i - -- make a new one + -- or we need to make a new one else i = tonumber(i) -- is it valid? if db.channels[i] then dbvars = db.channels[i] - -- use that as our base vars + -- that is our base vars else if D.sig[t_info.signature] then local sigvar = t_info.signature