Total RP 3

Total RP 3

4M Downloads

Individual character informations in the directory are never purged

Ellypse opened this issue ยท 1 comments

commented

Describe the bug
As the user uses the add-on, the character/player information (name, guild, race, etc.) saved in the TRP3_Register.character global variable is never purged. Users will keep collecting data about players they see and the table will never be purged and will grow infinitely.

To Reproduce
Steps to reproduce the behaviour:

  1. Play with the add-on for a while
  2. After a few days, the automatic purge will remove RP profiles we haven't seen in a while from the directory.
  3. The characters list in the TRP3_Register.character global variable who were assigned the removed profiles are still here.

Expected behaviour
The table with information about the characters we met should be purged of players without an RP profile in the directory upon login.

Version of the add-on:
Total RP 3 1.4.6

Did you try having Total RP 3 as the only enabled addon and everything else (especially something like ElvUI) disabled?
Yes

commented

To clear out the data, a user can run the following command to remove any character information that is not associated with a profile in the directory.

/run for a,b in pairs(TRP3_Register.character)do if not b.profileID then wipe(b);TRP3_Register.character[a]=nil end end