mirror of
https://github.com/opensim/opensim.git
synced 2026-08-12 04:05:42 +08:00
Formatting cleanup, minor refactoring, svn properties.
This commit is contained in:
@@ -67,12 +67,12 @@ namespace OpenSim.Grid.MessagingServer
|
||||
UserConfig uc = new UserConfig();
|
||||
uc.DatabaseConnect = cfg.DatabaseConnect;
|
||||
uc.DatabaseProvider = cfg.DatabaseProvider;
|
||||
|
||||
|
||||
m_userManager._config = uc;
|
||||
m_userManager.AddPlugin(cfg.DatabaseProvider, cfg.DatabaseConnect);
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
#region FriendList Methods
|
||||
|
||||
@@ -152,7 +152,7 @@ namespace OpenSim.Grid.MessagingServer
|
||||
friendlistupdater.OnDone += PresenceUpdateDone;
|
||||
WaitCallback cb = new WaitCallback(friendlistupdater.go);
|
||||
ThreadPool.QueueUserWorkItem(cb);
|
||||
|
||||
|
||||
}
|
||||
else
|
||||
{
|
||||
@@ -173,7 +173,7 @@ namespace OpenSim.Grid.MessagingServer
|
||||
{
|
||||
// we need to send out online status update, but the user is already subscribed
|
||||
}
|
||||
|
||||
|
||||
UserAgentData p2Handle = m_userManager.GetUserAgentData(friendpresence.agentData.AgentID);
|
||||
|
||||
if (p2Handle != null)
|
||||
@@ -196,7 +196,7 @@ namespace OpenSim.Grid.MessagingServer
|
||||
// skip, agent doesn't appear to exist anymore
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
//SendRegionPresenceUpdate(userpresence, friendpresence);
|
||||
}
|
||||
@@ -315,8 +315,8 @@ namespace OpenSim.Grid.MessagingServer
|
||||
UserAgentData p2Handle = m_userManager.GetUserAgentData(friendd.agentData.AgentID);
|
||||
if (p2Handle != null)
|
||||
{
|
||||
|
||||
|
||||
|
||||
|
||||
friendd.regionData.regionHandle = p2Handle.Handle;
|
||||
PresenceInformer friendlistupdater = new PresenceInformer();
|
||||
friendlistupdater.presence1 = AgentData;
|
||||
@@ -328,11 +328,11 @@ namespace OpenSim.Grid.MessagingServer
|
||||
|
||||
friendlistupdater.OnGetRegionData += GetRegionInfo;
|
||||
friendlistupdater.OnDone += PresenceUpdateDone;
|
||||
|
||||
|
||||
WaitCallback cb3 = new WaitCallback(friendlistupdater.go);
|
||||
ThreadPool.QueueUserWorkItem(cb3);
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
||||
else
|
||||
@@ -519,14 +519,14 @@ namespace OpenSim.Grid.MessagingServer
|
||||
else
|
||||
{
|
||||
// Don't lock the cache while we're looking up the region!
|
||||
lookup = true;
|
||||
lookup = true;
|
||||
}
|
||||
}
|
||||
|
||||
if (lookup)
|
||||
{
|
||||
regionInfo = RequestRegionInfo(regionhandle);
|
||||
|
||||
|
||||
if (regionInfo != null)
|
||||
{
|
||||
lock (m_regionInfoCache)
|
||||
@@ -542,7 +542,7 @@ namespace OpenSim.Grid.MessagingServer
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
return regionInfo;
|
||||
}
|
||||
|
||||
@@ -555,7 +555,7 @@ namespace OpenSim.Grid.MessagingServer
|
||||
cachecount = m_regionInfoCache.Count;
|
||||
m_regionInfoCache.Clear();
|
||||
}
|
||||
|
||||
|
||||
return cachecount;
|
||||
}
|
||||
|
||||
|
||||
@@ -36,13 +36,13 @@ namespace OpenSim.Grid.MessagingServer
|
||||
{
|
||||
public delegate RegionProfileData GetRegionData(ulong region_handle);
|
||||
public delegate void Done(PresenceInformer obj);
|
||||
|
||||
|
||||
|
||||
public class PresenceInformer
|
||||
{
|
||||
public event GetRegionData OnGetRegionData;
|
||||
public event Done OnDone;
|
||||
|
||||
|
||||
private GetRegionData handlerGetRegionData = null;
|
||||
private Done handlerDone = null;
|
||||
|
||||
@@ -102,10 +102,10 @@ namespace OpenSim.Grid.MessagingServer
|
||||
PresenceParams.Add("notify_id",UserToUpdate.agentData.AgentID.ToString());
|
||||
if (TalkingAbout.OnlineYN)
|
||||
PresenceParams.Add("status","TRUE");
|
||||
else
|
||||
else
|
||||
PresenceParams.Add("status","FALSE");
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
ArrayList SendParams = new ArrayList();
|
||||
@@ -123,12 +123,12 @@ namespace OpenSim.Grid.MessagingServer
|
||||
catch (WebException)
|
||||
{
|
||||
m_log.WarnFormat("[INFORM]: failed notifying region {0} containing user {1} about {2}", whichRegion.regionName, UserToUpdate.agentData.firstname + " " + UserToUpdate.agentData.lastname, TalkingAbout.agentData.firstname + " " + TalkingAbout.agentData.lastname);
|
||||
}
|
||||
}
|
||||
else
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
m_log.Info("[PRESENCEUPDATER]: Region data was null skipping");
|
||||
|
||||
|
||||
}
|
||||
|
||||
handlerDone = OnDone;
|
||||
|
||||
@@ -44,7 +44,7 @@ namespace OpenSim.Grid.MessagingServer
|
||||
public UserAgentData GetUserAgentData(LLUUID AgentID)
|
||||
{
|
||||
UserProfileData userProfile = GetUserProfile(AgentID);
|
||||
|
||||
|
||||
if (userProfile != null)
|
||||
{
|
||||
return userProfile.CurrentAgent;
|
||||
@@ -58,19 +58,19 @@ namespace OpenSim.Grid.MessagingServer
|
||||
public override UserProfileData SetupMasterUser(string firstName, string lastName)
|
||||
{
|
||||
//throw new Exception("The method or operation is not implemented.");
|
||||
return null;
|
||||
return null;
|
||||
}
|
||||
|
||||
public override UserProfileData SetupMasterUser(string firstName, string lastName, string password)
|
||||
{
|
||||
//throw new Exception("The method or operation is not implemented.");
|
||||
return null;
|
||||
return null;
|
||||
}
|
||||
|
||||
public override UserProfileData SetupMasterUser(LLUUID uuid)
|
||||
{
|
||||
//throw new Exception("The method or operation is not implemented.");
|
||||
return null;
|
||||
return null;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user