Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Workaround,
- Modules\BlackBook.lua, begin on line 366
- if BNGetNumFriends then -- For pre 3.3.5 backwards compat
- local numBNetTotal = BNGetNumFriends() -- hshh, fix for 8.2.5
- for i= 1, numBNetTotal do -- hshh, fix for 8.2.5
- local presenceID, presenceName, battleTag, isBattleTagPresence, toonName, toonID, client, isOnline, lastOnline, isAFK, isDND, messageText, noteText, isRIDFriend, messageTime, canSoR = BNGetFriendInfo(i)
- local accountInfo = C_BattleNet.GetFriendAccountInfo(i) -- hshh, fix for 8.2.5
- if (toonName and client == BNET_CLIENT_WOW and CanCooperateWithGameAccount(accountInfo)) then -- hshh, fix for 8.2.5
- -- Check if already on friends list
- local alreadyOnList = false
- for j = 1, numFriends do
- if sorttable[j] == toonName then
- alreadyOnList = true
- break
- end
- end
- if not alreadyOnList then
- numFriends = numFriends + 1
- sorttable[numFriends] = toonName
- end
- end
- end
- end
- Another needed to modify, still Modules\BlackBook.lua, begin on line 295. That's fix for receiver name input checking.
- -- Check RealID friends that are online
- if not newname and db.AutoCompleteFriends then
- local numBNetTotal, numBNetOnline = BNGetNumFriends()
- for i = 1, numBNetTotal do -- hshh, fix for 8.2.5
- local presenceID, presenceName, battleTag, isBattleTagPresence, toonName, toonID, client, isOnline, lastOnline, isAFK, isDND, messageText, noteText, isRIDFriend, messageTime, canSoR = BNGetFriendInfo(i)
- local accountInfo = C_BattleNet.GetFriendAccountInfo(i) -- hshh, fix for 8.2.5
- if (toonName and client == BNET_CLIENT_WOW and CanCooperateWithGameAccount(accountInfo)) then -- hshh, fix for 8.2.5
- if strfind(strupper(toonName), text, 1, 1) == 1 then
- newname = toonName
- break
- end
- end
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement