aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/CoreModules/Avatar/Friends/FriendsModule.cs
diff options
context:
space:
mode:
authorJeff Ames2010-01-04 06:10:45 +0900
committerJeff Ames2010-01-04 06:17:30 +0900
commit70d5b1c34cf2eb6621f383169fdee03966850762 (patch)
tree18bf786a4c0897cb24fa9ceef5f53d5ce345a78f /OpenSim/Region/CoreModules/Avatar/Friends/FriendsModule.cs
parentAdd virtual method StateChange to ScriptBaseClass (diff)
downloadopensim-SC-70d5b1c34cf2eb6621f383169fdee03966850762.zip
opensim-SC-70d5b1c34cf2eb6621f383169fdee03966850762.tar.gz
opensim-SC-70d5b1c34cf2eb6621f383169fdee03966850762.tar.bz2
opensim-SC-70d5b1c34cf2eb6621f383169fdee03966850762.tar.xz
Formatting cleanup. Add copyright headers.
Diffstat (limited to 'OpenSim/Region/CoreModules/Avatar/Friends/FriendsModule.cs')
-rw-r--r--OpenSim/Region/CoreModules/Avatar/Friends/FriendsModule.cs34
1 files changed, 17 insertions, 17 deletions
diff --git a/OpenSim/Region/CoreModules/Avatar/Friends/FriendsModule.cs b/OpenSim/Region/CoreModules/Avatar/Friends/FriendsModule.cs
index 580e06f..a4a649c 100644
--- a/OpenSim/Region/CoreModules/Avatar/Friends/FriendsModule.cs
+++ b/OpenSim/Region/CoreModules/Avatar/Friends/FriendsModule.cs
@@ -1119,23 +1119,23 @@ namespace OpenSim.Region.CoreModules.Avatar.Friends
1119 } 1119 }
1120 public void FindAgent(IClientAPI remoteClient, UUID hunter, UUID target) 1120 public void FindAgent(IClientAPI remoteClient, UUID hunter, UUID target)
1121 { 1121 {
1122 List<FriendListItem> friendList = GetUserFriends(hunter); 1122 List<FriendListItem> friendList = GetUserFriends(hunter);
1123 foreach (FriendListItem item in friendList) 1123 foreach (FriendListItem item in friendList)
1124 { 1124 {
1125 if(item.onlinestatus == true) 1125 if (item.onlinestatus == true)
1126 { 1126 {
1127 if(item.Friend == target && (item.FriendPerms & (uint)FriendRights.CanSeeOnMap) != 0) 1127 if (item.Friend == target && (item.FriendPerms & (uint)FriendRights.CanSeeOnMap) != 0)
1128 { 1128 {
1129 ScenePresence SPTarget = ((Scene)remoteClient.Scene).GetScenePresence(target); 1129 ScenePresence SPTarget = ((Scene)remoteClient.Scene).GetScenePresence(target);
1130 string regionname = SPTarget.Scene.RegionInfo.RegionName; 1130 string regionname = SPTarget.Scene.RegionInfo.RegionName;
1131 remoteClient.SendScriptTeleportRequest("FindAgent", regionname,new Vector3(SPTarget.AbsolutePosition),new Vector3(SPTarget.Lookat)); 1131 remoteClient.SendScriptTeleportRequest("FindAgent", regionname,new Vector3(SPTarget.AbsolutePosition),new Vector3(SPTarget.Lookat));
1132 } 1132 }
1133 } 1133 }
1134 else 1134 else
1135 { 1135 {
1136 remoteClient.SendAgentAlertMessage("The agent you are looking for is not online.", false); 1136 remoteClient.SendAgentAlertMessage("The agent you are looking for is not online.", false);
1137 } 1137 }
1138 } 1138 }
1139 } 1139 }
1140 1140
1141 public List<FriendListItem> GetUserFriends(UUID agentID) 1141 public List<FriendListItem> GetUserFriends(UUID agentID)