Mercurial > wow > devian
diff Devian.lua @ 31:6fcfe60bbd0f
Another fix to /dvn tag assignments. It also outputs the channel signature and index so you know you aren't psychotic.
author | Nenue |
---|---|
date | Sat, 26 Dec 2015 05:18:24 -0500 |
parents | 42e74b72726d |
children | c6a2c2df4790 |
line wrap: on
line diff
--- 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