Advertisement
Guest User

Postal 8.2.5

a guest
Dec 9th, 2019
106
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.82 KB | None | 0 0
  1. Workaround,
  2.  
  3. Modules\BlackBook.lua, begin on line 366
  4.  
  5.  
  6.  
  7. if BNGetNumFriends then -- For pre 3.3.5 backwards compat
  8. local numBNetTotal = BNGetNumFriends() -- hshh, fix for 8.2.5
  9. for i= 1, numBNetTotal do -- hshh, fix for 8.2.5
  10. local presenceID, presenceName, battleTag, isBattleTagPresence, toonName, toonID, client, isOnline, lastOnline, isAFK, isDND, messageText, noteText, isRIDFriend, messageTime, canSoR = BNGetFriendInfo(i)
  11. local accountInfo = C_BattleNet.GetFriendAccountInfo(i) -- hshh, fix for 8.2.5
  12. if (toonName and client == BNET_CLIENT_WOW and CanCooperateWithGameAccount(accountInfo)) then -- hshh, fix for 8.2.5
  13. -- Check if already on friends list
  14. local alreadyOnList = false
  15. for j = 1, numFriends do
  16. if sorttable[j] == toonName then
  17. alreadyOnList = true
  18. break
  19. end
  20. end
  21. if not alreadyOnList then
  22. numFriends = numFriends + 1
  23. sorttable[numFriends] = toonName
  24. end
  25. end
  26. end
  27. end
  28.  
  29.  
  30.  
  31.  
  32. Another needed to modify, still Modules\BlackBook.lua, begin on line 295. That's fix for receiver name input checking.
  33.  
  34.  
  35.  
  36. -- Check RealID friends that are online
  37. if not newname and db.AutoCompleteFriends then
  38. local numBNetTotal, numBNetOnline = BNGetNumFriends()
  39. for i = 1, numBNetTotal do -- hshh, fix for 8.2.5
  40. local presenceID, presenceName, battleTag, isBattleTagPresence, toonName, toonID, client, isOnline, lastOnline, isAFK, isDND, messageText, noteText, isRIDFriend, messageTime, canSoR = BNGetFriendInfo(i)
  41. local accountInfo = C_BattleNet.GetFriendAccountInfo(i) -- hshh, fix for 8.2.5
  42. if (toonName and client == BNET_CLIENT_WOW and CanCooperateWithGameAccount(accountInfo)) then -- hshh, fix for 8.2.5
  43. if strfind(strupper(toonName), text, 1, 1) == 1 then
  44. newname = toonName
  45. break
  46. end
  47. end
  48. end
  49. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement