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:
This should only be necessary for older viewers prior to our multi-currency patch.
In the case where this user is running a viewer with our patch, we should make sure that this doesn't interfere with the UpdateBalance call that will come from the viewer. Is a duplicate SendBalance down to the viewer bad? Will the user receive our Auth IM twice due to the NewSessionMessaging?
In OnCompleteMovementToRegion, we update the balance as follows
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: