Exemplo n.º 1
0
        void OnClosingClient(IClientAPI client)
        {
            client.OnRequestAvatarProperties -= RequestAvatarProperty;
            client.OnUpdateAvatarProperties  -= UpdateAvatarProperties;
            client.RemoveGenericPacketHandler("avatarclassifiedsrequest");
            client.OnClassifiedInfoRequest -= ClassifiedInfoRequest;
            client.OnClassifiedInfoUpdate  -= ClassifiedInfoUpdate;
            client.OnClassifiedDelete      -= ClassifiedDelete;
            client.OnClassifiedGodDelete   -= GodClassifiedDelete;
            client.OnUserInfoRequest       -= UserPreferencesRequest;
            client.OnUpdateUserInfo        -= UpdateUserPreferences;
            //Track agents
            client.OnTrackAgent -= TrackAgent;
            client.OnFindAgent  -= TrackAgent;

            // Notes
            client.RemoveGenericPacketHandler("avatarnotesrequest");
            client.OnAvatarNotesUpdate -= AvatarNotesUpdate;

            //Profile
            client.OnAvatarInterestUpdate -= AvatarInterestsUpdate;

            // Picks
            client.RemoveGenericPacketHandler("avatarpicksrequest");
            client.RemoveGenericPacketHandler("pickinforequest");
            client.OnPickInfoUpdate -= PickInfoUpdate;
            client.OnPickDelete     -= PickDelete;
            client.OnPickGodDelete  -= GodPickDelete;

            ProfileFrontend.ClearCache(client.AgentId);
        }