aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/CoreModules/Avatar/Friends/FriendsModule.cs (unfollow)
Commit message (Collapse)AuthorFilesLines
2019-05-19Dump OpenSim 0.9.0.1 into it's own branch.onefang1-47/+122
2016-11-03Initial update to OpenSim 0.8.2.1 source code.David Walter Seikel1-12/+38
2012-11-13Another 21 modules' directives moved out of .addin.xmlDiva Canto1-0/+2
2012-10-20Improve efficiency of friends notification by only make one PresenceService ↵Justin Clark-Casey (justincc)1-29/+24
call for all friends rather than one for each friend. However, large groups could still take a very long time since we still need to message each avatar on different simulators.
2012-09-12minor: Comment out friends notification log spam for now.Justin Clark-Casey (justincc)1-3/+3
2012-05-07refactor: Instead of performing a ScenePresence lookup twice over ↵Justin Clark-Casey (justincc)1-18/+2
LocateClientObject() and GetClientScene(), do the lookup just once in LocateClientObject()
2012-05-07Fix a bug in FriendsModule.StatusNotify() where all subsequent friends would ↵Justin Clark-Casey (justincc)1-2/+7
not be notified once a non-local friend was found.
2012-04-11HGFriendsModule: add the scaffolding for supporting permissions pertaining ↵Diva Canto1-2/+2
to HG friendships. Snoopy take it from here.
2012-03-30Make default "show friends" console command show friends fetched from the ↵Justin Clark-Casey (justincc)1-2/+2
friends service. There is no a --cache option which will show friends from the local cache if available.
2012-03-30refactor: Move "friends show cache" console command out into separate ↵Justin Clark-Casey (justincc)1-86/+12
FriendsCommandsModule. Expose required methods on IFriendsModule. Rename GetFriends() -> GetFriendsFromCache() for self-documentation
2012-03-30Add simple login test with online friends. Add IFriendsModule.GrantRights() ↵Justin Clark-Casey (justincc)1-23/+27
for granting rights via a module call. Rename IFriendsModule.GetFriendPerms() -> GetRightsGrantedByFriend() to be more self-documenting and consistent with friends module terminology. Add some method doc.
2012-03-29refactor: Stop passing both IClientAPI and agentID to friend event ↵Justin Clark-Casey (justincc)1-18/+22
listeners, these are redundant. Replace a few magic numbers with FriendRights enum already used elsewhere.
2012-03-29Add back parts of reverted changes that were not concerned with child agent ↵Justin Clark-Casey (justincc)1-0/+3
caching. This adds ScenePresence to IClientAPI.SceneAgent earlier on in the add client process so that its information is available to EventManager.OnNewClient() and OnClientLogin() Also add a code comment as to why we're caching friend information for child agents.
2012-03-29Revert "Simplify friends caching by only doing this for root agents - no ↵Justin Clark-Casey (justincc)1-18/+44
functions require caching for child agents." We need to cache child agents so that friends object edit/delete permissions will work across boarders on regions hosted by different simulators. This reverts commit d9f7b8549b3cb9699eb8bd54242d31aac0f8241a.
2012-03-29Pushing the Avination Calling card hooks. Module to follow.Melanie1-4/+17
2012-03-28Simplify friends caching by only doing this for root agents - no functions ↵Justin Clark-Casey (justincc)1-44/+18
require caching for child agents. This allows us to avoid unnecessary multiple calls to the friends service. All friends functions originate from the root agent and only go to other root agents in existing code. This also allows us to eliminate complex ref counting.
2012-03-28Add "friends show cache <first-name> <last-name>" command for debugging ↵Justin Clark-Casey (justincc)1-2/+76
purposes. This adds a reverse lookup (name -> ID) to IUserManagement instead of hitting the UserAccountService directly.
2012-03-21HG Friends: pulled sim-bound notification code to HGStatusNotifier, so that ↵Diva Canto1-1/+1
we can better manage this traffic.
2012-03-21Removed extraneous debug messageDiva Canto1-3/+0
2012-03-20HG Friends: allow the establishment of HG friendships without requiring ↵Diva Canto1-7/+24
co-presence in the same sim. Using avatar picker, users can now search for names such as "first.last@grid.com:9000", find them, and request friendship. Friendship requests are stored if target user is offline. TESTED ON STANDALONE ONLY.
2011-11-15Add comments about trying to avoid synchronous work off the ↵Justin Clark-Casey (justincc)1-1/+4
EventManager.OnMakeRootAgent event since this is on the critical path for transfer of avatars from one region to another.
2011-11-15remove SceneCommunicationService.OnAvatarCrossingIntoRegion. This stuff is ↵Justin Clark-Casey (justincc)1-1/+0
not being used any more - it's now IEntityTransferModule and SimulationService instead
2011-11-15Rename FetchFriendslist() -> CacheFriends() and RefetchFriends() -> ↵Justin Clark-Casey (justincc)1-12/+11
RecacheFriends() to reflect their intended function
2011-11-15refactor: rename m_NeedsListOfFriends => m_NeedsListOfOnlineFriends to ↵Justin Clark-Casey (justincc)1-5/+5
better reflect its actual function
2011-11-15For clients that are entering a simulator from initial login, stop executing ↵Justin Clark-Casey (justincc)1-5/+27
FriendsModule.FetchFriendslist() asychronously. Executing this asynchronously allows a race condition where subsequent friends fetches hit a cache that FetchFriendsList() had not yet populated. Changing this to synchronous may improve issues where a user does not see friends as online even though they are. I don't believe synchronous is a problem here, but if it is, then a more complicated signalling mechanism is required. Locking the cache isn't sufficient.
2011-11-15refactor: Don't create a new UUID for passing uuids to client - UUIDs are ↵Justin Clark-Casey (justincc)1-4/+6
structs are so not passed by reference (and they're immutable!)
2011-11-14Add test for removing a friendship.Justin Clark-Casey (justincc)1-6/+6
2011-11-14Improved method doc for AddFriend() - it actually does set up a two-way ↵Justin Clark-Casey (justincc)1-2/+2
relationship. Rename IFriendsModule.AddFriend() to AddFriendship()
2011-11-14minor: remove some mono compiler warningsJustin Clark-Casey (justincc)1-6/+0
2011-11-14Add test for adding a friend whilst onlineJustin Clark-Casey (justincc)1-5/+10
2011-11-14Add very simple FriendsModuleTests.TestNoFriends()Justin Clark-Casey (justincc)1-1/+3
2011-11-02Port the Avination offline messaging system to CoreMelanie1-3/+1
2011-10-25Make OpenSim.Framework.Servers.HttpServer rely on OpenSim.Framework instead ↵Justin Clark-Casey (justincc)1-0/+1
of the other way around. This is necessary so that code in HttpServer can use framework facilities such as the thread watchdog for monitoring purposes. Doing this shuffle meant that MainServer was moved into OpenSim/Framework/Servers Also had to make OpenSim.Framework.Console rely on OpenSim.Framework rather than the other way around since it in turn relies on HttpServer MainConsole and some new interfaces had to be moved into OpenSim/Framework to allow this. This can be reverted if parts of OpenSim.Framework stop relying on console presence (cheifly RegionInfo)
2011-06-27minor: temporarily comment out the local status notify friends messages seen ↵Justin Clark-Casey (justincc)1-1/+1
on login/logout, since it's a bit noisy on the console. Please uncomment if/when this is still needed.
2011-06-07This hopefully fixes all issues with online/offline notifications across ↵Diva Canto1-1/+1
grids. http://opensimulator.org/mantis/view.php?id=5528
2011-05-23HG friends: Status notifications working. Also initial logins get the online ↵Diva Canto1-45/+47
friends in other grids.
2011-05-22More on HG Friends. Added Delete(string, string) across the board. Added ↵Diva Canto1-46/+61
security to friendship identifiers so that they can safely be deleted across worlds. Had to change Get(string) to use LIKE because the secret in the identifier is not always known -- affects only HG visitors. BOTTOM LINE SO FAR: HG friendships established and deleted safely across grids, local rights working but not (yet?) being transmitted back.
2011-05-21Fixed permissions bug related to friends in PermissionsModule. Added ↵Diva Canto1-35/+68
FriendsData[] GetFriends(string principalID) to IFriendsData and FriendInfo[] GetFriends(string PrincipalID) to IFriendsService. Refactored some more in the FriendsModule. Made client get notification of local friends permissions upon HGLogin. HG Friends object permissions work.
2011-05-19HG Friends working to some extent: friendships offered and accepted ↵Diva Canto1-39/+112
correctly handled. Friends list showing correct foreign names. TODO: GrantRights.
2011-04-12Moved 3 request handlers from OpenSim.Framework.Servers.HttpServer up to ↵Diva Canto1-1/+1
OpenSim.Framework -- just pasted them in WebUtil. This is so that code that uses the Service connectors don't need to include the HttpServer dll -- that was odd.
2011-01-03Allow cross-scope friendships to work, and also allow other cross scope nameMelanie1-1/+1
resolution
2010-10-04Formatting cleanup.Jeff Ames1-6/+6
2010-09-17Revert "* Changed 11 calls for session info to the more optimized API method"root1-32/+71
This reverts commit 5dc9ea2f2487804d788b4b80d40d91bd792de4c2. Also makes online indicators and IM more robust
2010-09-09Over a dozen thread safety fixes in FriendsModuleJohn Hurliman1-167/+163
2010-09-08* Changed 11 calls for session info to the more optimized API methodJohn Hurliman1-68/+32
2010-06-28One more bug fix in FriendsModule: GrantRights. One of the caches was not ↵Diva Canto1-0/+7
being updated.
2010-06-19Bug fix: wrong name of requester in local friendship offer.Diva Canto1-1/+4
2010-06-11Better friends notification: get rid of OnLogout and use OnClientClose for ↵Diva Canto1-23/+14
sending notifications. This takes care of crashed sessions. Also, made the notifications themselves asynchronous.
2010-06-10Bug fix on friends notifications. OnClientClose and OnLogout ordering are ↵Diva Canto1-8/+33
unpredictable; when OnClientClosed happened first, it was removing the friends list, which would prevent OnLogout notifications to go out.
2010-06-05Bug fix: update the list of friends upon MakeRoot, because child agents ↵Diva Canto1-1/+1
don't get notified of new friendships.