minor: remove some mono compiler warnings

This commit is contained in:
Justin Clark-Casey (justincc)
2011-11-14 18:16:14 +00:00
parent 348d15707d
commit a64def8b73
4 changed files with 2 additions and 11 deletions

View File

@@ -354,18 +354,12 @@ namespace OpenSim.Region.CoreModules.Avatar.Friends
continue;
}
PresenceInfo presence = null;
PresenceInfo[] presences = PresenceService.GetAgents(new string[] { fid });
if (presences != null && presences.Length > 0)
presence = presences[0];
im.offline = 0;
im.fromAgentID = fromAgentID.Guid;
im.fromAgentName = firstname + " " + lastname;
im.imSessionID = im.fromAgentID;
im.message = FriendshipMessage(fid);
// Finally
LocalFriendshipOffered(agentID, im);
}