aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/CoreModules/Avatar/Friends/FriendsModule.cs
diff options
context:
space:
mode:
authorJustin Clark-Casey (justincc)2011-11-14 18:16:14 +0000
committerJustin Clark-Casey (justincc)2011-11-14 18:16:14 +0000
commita64def8b73d4665b58852bbd75ba3ab010db7432 (patch)
treeac203391729952043ade88569fb54cd3b5fd5bda /OpenSim/Region/CoreModules/Avatar/Friends/FriendsModule.cs
parentAdd test for adding a friend whilst online (diff)
downloadopensim-SC-a64def8b73d4665b58852bbd75ba3ab010db7432.zip
opensim-SC-a64def8b73d4665b58852bbd75ba3ab010db7432.tar.gz
opensim-SC-a64def8b73d4665b58852bbd75ba3ab010db7432.tar.bz2
opensim-SC-a64def8b73d4665b58852bbd75ba3ab010db7432.tar.xz
minor: remove some mono compiler warnings
Diffstat (limited to 'OpenSim/Region/CoreModules/Avatar/Friends/FriendsModule.cs')
-rw-r--r--OpenSim/Region/CoreModules/Avatar/Friends/FriendsModule.cs6
1 files changed, 0 insertions, 6 deletions
diff --git a/OpenSim/Region/CoreModules/Avatar/Friends/FriendsModule.cs b/OpenSim/Region/CoreModules/Avatar/Friends/FriendsModule.cs
index f4281e5..31ffc4d 100644
--- a/OpenSim/Region/CoreModules/Avatar/Friends/FriendsModule.cs
+++ b/OpenSim/Region/CoreModules/Avatar/Friends/FriendsModule.cs
@@ -354,18 +354,12 @@ namespace OpenSim.Region.CoreModules.Avatar.Friends
354 continue; 354 continue;
355 } 355 }
356 356
357 PresenceInfo presence = null;
358 PresenceInfo[] presences = PresenceService.GetAgents(new string[] { fid });
359 if (presences != null && presences.Length > 0)
360 presence = presences[0];
361 im.offline = 0; 357 im.offline = 0;
362
363 im.fromAgentID = fromAgentID.Guid; 358 im.fromAgentID = fromAgentID.Guid;
364 im.fromAgentName = firstname + " " + lastname; 359 im.fromAgentName = firstname + " " + lastname;
365 im.imSessionID = im.fromAgentID; 360 im.imSessionID = im.fromAgentID;
366 im.message = FriendshipMessage(fid); 361 im.message = FriendshipMessage(fid);
367 362
368 // Finally
369 LocalFriendshipOffered(agentID, im); 363 LocalFriendshipOffered(agentID, im);
370 } 364 }
371 365