From 958a8f274b8a25703935ab4092f190e9d54b8559 Mon Sep 17 00:00:00 2001
From: Melanie
Date: Sat, 7 Dec 2013 01:29:15 +0000
Subject: Revert "Add support for user preferences (im via email)"
This reverts commit 1842388bb4dcf5ecd57732ffa877b6ca1a3dec7b.
---
.../Avatar/UserProfiles/UserProfileModule.cs | 67 ----------------------
1 file changed, 67 deletions(-)
(limited to 'OpenSim/Region/CoreModules/Avatar/UserProfiles')
diff --git a/OpenSim/Region/CoreModules/Avatar/UserProfiles/UserProfileModule.cs b/OpenSim/Region/CoreModules/Avatar/UserProfiles/UserProfileModule.cs
index b21082f..56ff2bd 100644
--- a/OpenSim/Region/CoreModules/Avatar/UserProfiles/UserProfileModule.cs
+++ b/OpenSim/Region/CoreModules/Avatar/UserProfiles/UserProfileModule.cs
@@ -270,10 +270,6 @@ namespace OpenSim.Region.OptionalModules.Avatar.UserProfiles
// Notes
client.AddGenericPacketHandler("avatarnotesrequest", NotesRequest);
client.OnAvatarNotesUpdate += NotesUpdate;
-
- // Preferences
- client.OnUserInfoRequest += UserPreferencesRequest;
- client.OnUpdateUserInfo += UpdateUserPreferences;
}
#endregion Region Event Handlers
@@ -803,69 +799,6 @@ namespace OpenSim.Region.OptionalModules.Avatar.UserProfiles
}
#endregion Notes
- #region User Preferences
- ///
- /// Updates the user preferences.
- ///
- ///
- /// Im via email.
- ///
- ///
- /// Visible.
- ///
- ///
- /// Remote client.
- ///
- public void UpdateUserPreferences(bool imViaEmail, bool visible, IClientAPI remoteClient)
- {
- UserPreferences pref = new UserPreferences();
-
- pref.UserId = remoteClient.AgentId;
- pref.IMViaEmail = imViaEmail;
- pref.Visible = visible;
-
- string serverURI = string.Empty;
- bool foreign = GetUserProfileServerURI(remoteClient.AgentId, out serverURI);
-
- object Pref = pref;
- if(!JsonRpcRequest(ref Pref, "user_preferences_update", serverURI, UUID.Random().ToString()))
- {
- m_log.InfoFormat("[PROFILES]: UserPreferences update error");
- remoteClient.SendAgentAlertMessage("Error updating preferences", false);
- return;
- }
- }
-
- ///
- /// Users the preferences request.
- ///
- ///
- /// Remote client.
- ///
- public void UserPreferencesRequest(IClientAPI remoteClient)
- {
- UserPreferences pref = new UserPreferences();
-
- pref.UserId = remoteClient.AgentId;
-
- string serverURI = string.Empty;
- bool foreign = GetUserProfileServerURI(remoteClient.AgentId, out serverURI);
-
-
- object Pref = (object)pref;
- if(!JsonRpcRequest(ref Pref, "user_preferences_request", serverURI, UUID.Random().ToString()))
- {
- m_log.InfoFormat("[PROFILES]: UserPreferences request error");
- remoteClient.SendAgentAlertMessage("Error requesting preferences", false);
- return;
- }
- pref = (UserPreferences) Pref;
-
- remoteClient.SendUserInfoReply(pref.IMViaEmail, pref.Visible, pref.EMail);
-
- }
- #endregion User Preferences
-
#region Avatar Properties
///
/// Update the avatars interests .
--
cgit v1.1