Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function bdlc:removeUserConsidering(itemLink, playerName)
- playerName = FetchUnitName(playerName)
- playerNamePlain = FetchUnitNamePlain(playerName)
- local myName = GetUnitName("player")
- if bdlc:inLC() then
- local currententry = bdlc:returnEntry(itemLink, playerName)
- if (currententry) then
- currententry:Hide()
- currententry.user_notes:Hide()
- currententry.active = false
- currententry.itemLink = 0
- currententry.notes = ""
- currententry.playerName = ""
- currententry.wantLevel = 0
- currententry.voteUser:Hide()
- currententry.voteUserML:Hide()
- currententry.votes.text:SetText("0")
- end
- if (bdlc.loot_council_votes[itemLink]) then
- bdlc.loot_council_votes[itemLink][playerName] = nil
- end
- if (bdlc.loot_considering[itemLink]) then
- bdlc.loot_considering[itemLink][playerName] = nil
- end
- if (bdlc.loot_want[itemLink]) then
- bdlc.loot_want[itemLink][playerName] = nil
- end
- if (UnitExists(playerNamePlain)) then
- SendAddonMessage(bdlc.message_prefix, "removeUserRoll><"..itemLink, "WHISPER", playerName);
- if (myName == playerNamePlain) then
- print("|cffFF3333rslc:|r Your roll on "..itemLink.." has been canceled by the master looter")
- end
- end
- end
- bdlc:repositionFrames()
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement