comparison Lists.lua @ 2:00286ba3b9c4

Bug: forgot raid list was keyed with the names
author John@Yosemite-PC
date Fri, 02 Mar 2012 22:44:30 -0500
parents 21c58930f74e
children 431ddc8bdb4a
comparison
equal deleted inserted replaced
1:21c58930f74e 2:00286ba3b9c4
315 local t = {} 315 local t = {}
316 for i,v in pairs(bsk.players) do 316 for i,v in pairs(bsk.players) do
317 t[v] = true 317 t[v] = true
318 end 318 end
319 for i,v in pairs(RaidList) do 319 for i,v in pairs(RaidList) do
320 if t[v] == nil then 320 if t[i] == nil then
321 bsk:Print(sformat("Player % is missing from the players list - adding",v)) 321 bsk:Print(sformat("Player %s is missing from the players list - adding",i))
322 bsk:AddPlayer(v) 322 bsk:AddPlayer(i)
323 end 323 end
324 end 324 end
325 -- TODO: batch into a single op - no need to spam 25 messages in a row 325 -- TODO: batch into a single op - no need to spam 25 messages in a row
326 end 326 end
327 --}}} 327 --}}}