gloebit / opensim-moneymodule-gloebit

OpenSim addon module integrating with the Gloebit digital currency service
GNU Lesser General Public License v3.0
8 stars 12 forks source link

Send BalanceUpdate of 0 to viewer when non-authed av enters Gloebit region #75

Closed colosi closed 5 years ago

colosi commented 5 years ago

In OnCompleteMovementToRegion, we update the balance as follows

// If authed, update balance immediately
if (user.IsAuthed()) {
    // Don't send Buy Gloebits messaging so that we don't spam
    UpdateBalance(client.AgentId, client, 0);
}

But, if the user is not authorized and has come from a region with another currency, the user's balance may be non-zero. We should send an update to the viewer to force it to zero.

Notes: