CommunityDKP

CommunityDKP

194k Downloads

!dkp responses are indeterminate when using multiple teams

thunk84 opened this issue ยท 2 comments

commented

Describe the bug
Using 3.0 r7: If user A whispers !dkp to user B, user B replies with a dkp value of whichever team user B last viewed. From User A's point of view, the reply is unpredictable.

To Reproduce
Steps to reproduce the behavior:

User A - regular raider. User B - officer. User C - officer.

  1. User A wants to see team 1 DKP.
  2. User B (officer) views Team 2, and closes CommunityDKP
  3. User C (officer) views Team 1 and closes CommunityDKP
    4 User A whispers User B. User B replies with team2 dkp as that's the last team he was viewing. User A, though, doesn't know which team the reply applies to. it appears to be random.
  4. Since they're confused, user A whispers user C and receives team1 dkp. User A is confused because the officers are reporting two different values, and User A doesn't know how to force a response of team 1 dkp.

Expected behavior
A clear and concise description of what you expected to happen.
When commDKP replies on User B, it should reply with User A's dkp in every team. And the output line should include the team name so it's clear which line applies to which team.

Or allow user A to query by team, such as "!dkp myName Black Wing Lair

Screenshots
If applicable, add screenshots to help explain your problem.

CommunityDKP Version
3.0 r7:

Additional context
Add any other context about the problem here.

commented

I've got it to where it does this now:
image

commented

Fantastic bug report! Absolutely right. I think the solution here is that !dkp reply with all teams that the player is apart of that officer can see. So it might look like:

[Team Name A] DKP 243
[Team Name B] DKP -12