diff options
-rw-r--r-- | OpenSim/Region/CoreModules/Avatar/UserProfiles/UserProfileModule.cs | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/OpenSim/Region/CoreModules/Avatar/UserProfiles/UserProfileModule.cs b/OpenSim/Region/CoreModules/Avatar/UserProfiles/UserProfileModule.cs index e02ca49..22984ef 100644 --- a/OpenSim/Region/CoreModules/Avatar/UserProfiles/UserProfileModule.cs +++ b/OpenSim/Region/CoreModules/Avatar/UserProfiles/UserProfileModule.cs | |||
@@ -71,6 +71,9 @@ namespace OpenSim.Region.CoreModules.Avatar.UserProfiles | |||
71 | ExpiringCache<UUID, UserProfileCacheEntry> m_profilesCache = new ExpiringCache<UUID, UserProfileCacheEntry>(); | 71 | ExpiringCache<UUID, UserProfileCacheEntry> m_profilesCache = new ExpiringCache<UUID, UserProfileCacheEntry>(); |
72 | IAssetCache m_assetCache; | 72 | IAssetCache m_assetCache; |
73 | 73 | ||
74 | static readonly UUID m_MrOpenSimID = new UUID("11111111-1111-0000-0000-000100bba000"); | ||
75 | static readonly DateTime m_MrOpenSimBorn = new DateTime(2007,1,1,0,0,0,DateTimeKind.Utc); | ||
76 | |||
74 | private JsonRpcRequestManager rpc = new JsonRpcRequestManager(); | 77 | private JsonRpcRequestManager rpc = new JsonRpcRequestManager(); |
75 | private bool m_allowUserProfileWebURLs = true; | 78 | private bool m_allowUserProfileWebURLs = true; |
76 | 79 | ||
@@ -355,6 +358,12 @@ namespace OpenSim.Region.CoreModules.Avatar.UserProfiles | |||
355 | if(!UUID.TryParse(args[0], out targetID) || targetID == UUID.Zero) | 358 | if(!UUID.TryParse(args[0], out targetID) || targetID == UUID.Zero) |
356 | return; | 359 | return; |
357 | 360 | ||
361 | if (targetID == m_MrOpenSimID) | ||
362 | { | ||
363 | remoteClient.SendAvatarClassifiedReply(targetID, classifieds); | ||
364 | return; | ||
365 | } | ||
366 | |||
358 | ScenePresence p = FindPresence(targetID); | 367 | ScenePresence p = FindPresence(targetID); |
359 | if (p != null && p.IsNPC) | 368 | if (p != null && p.IsNPC) |
360 | { | 369 | { |
@@ -750,6 +759,12 @@ namespace OpenSim.Region.CoreModules.Avatar.UserProfiles | |||
750 | 759 | ||
751 | Dictionary<UUID, string> picks = new Dictionary<UUID, string>(); | 760 | Dictionary<UUID, string> picks = new Dictionary<UUID, string>(); |
752 | 761 | ||
762 | if (targetId == m_MrOpenSimID) | ||
763 | { | ||
764 | remoteClient.SendAvatarPicksReply(targetId, picks); | ||
765 | return; | ||
766 | } | ||
767 | |||
753 | ScenePresence p = FindPresence(targetId); | 768 | ScenePresence p = FindPresence(targetId); |
754 | if (p != null && p.IsNPC) | 769 | if (p != null && p.IsNPC) |
755 | { | 770 | { |
@@ -1164,6 +1179,9 @@ namespace OpenSim.Region.CoreModules.Avatar.UserProfiles | |||
1164 | /// </param> | 1179 | /// </param> |
1165 | public void NotesUpdate(IClientAPI remoteClient, UUID queryTargetID, string queryNotes) | 1180 | public void NotesUpdate(IClientAPI remoteClient, UUID queryTargetID, string queryNotes) |
1166 | { | 1181 | { |
1182 | if (queryTargetID == m_MrOpenSimID) | ||
1183 | return; | ||
1184 | |||
1167 | ScenePresence p = FindPresence(queryTargetID); | 1185 | ScenePresence p = FindPresence(queryTargetID); |
1168 | if (p != null && p.IsNPC) | 1186 | if (p != null && p.IsNPC) |
1169 | { | 1187 | { |
@@ -1328,6 +1346,15 @@ namespace OpenSim.Region.CoreModules.Avatar.UserProfiles | |||
1328 | return; | 1346 | return; |
1329 | } | 1347 | } |
1330 | 1348 | ||
1349 | if (avatarID == m_MrOpenSimID) | ||
1350 | { | ||
1351 | remoteClient.SendAvatarProperties(avatarID, "Creator of OpenSimulator shared assets library", m_MrOpenSimBorn.ToString(), | ||
1352 | Utils.StringToBytes("System agent"), "MrOpenSim has no life", 0x10, | ||
1353 | UUID.Zero, UUID.Zero, "", UUID.Zero); | ||
1354 | remoteClient.SendAvatarInterestsReply(avatarID, 0, "", | ||
1355 | 0, "Getting into trouble", "Droidspeak"); | ||
1356 | return; | ||
1357 | } | ||
1331 | ScenePresence p = FindPresence(avatarID); | 1358 | ScenePresence p = FindPresence(avatarID); |
1332 | if (p != null && p.IsNPC) | 1359 | if (p != null && p.IsNPC) |
1333 | { | 1360 | { |