mirror of
https://github.com/opensim/opensim.git
synced 2026-08-11 20:05:33 +08:00
split usermanagement adduser into simpler per case methods
This commit is contained in:
@@ -680,7 +680,7 @@ namespace OpenSim.Region.Framework.Scenes
|
||||
|
||||
IUserManagement uman = RequestModuleInterface<IUserManagement>();
|
||||
if (uman != null)
|
||||
uman.AddUser(item.CreatorIdAsUuid, item.CreatorData);
|
||||
uman.AddCreatorUser(item.CreatorIdAsUuid, item.CreatorData);
|
||||
|
||||
if (!Permissions.BypassPermissions())
|
||||
{
|
||||
|
||||
@@ -1330,7 +1330,7 @@ namespace OpenSim.Region.Framework.Scenes
|
||||
{
|
||||
tmp = SceneGridInfo.EconomyURL;
|
||||
if (!string.IsNullOrEmpty(tmp))
|
||||
fm.AddOpenSimExtraFeature("currency-base-uri", tmp);
|
||||
fm.AddOpenSimExtraFeature("currency-base-uri", tmp);
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -3248,11 +3248,12 @@ namespace OpenSim.Region.Framework.Scenes
|
||||
{
|
||||
if (UserManagementModule != null)
|
||||
{
|
||||
string first = aCircuit.firstname, last = aCircuit.lastname;
|
||||
string first = aCircuit.firstname;
|
||||
string last = aCircuit.lastname;
|
||||
|
||||
if (sp != null && sp.PresenceType == PresenceType.Npc)
|
||||
{
|
||||
UserManagementModule.AddUser(aCircuit.AgentID, first, last, true);
|
||||
UserManagementModule.AddNPCUser(aCircuit.AgentID, first, last);
|
||||
}
|
||||
else
|
||||
{
|
||||
@@ -4263,8 +4264,6 @@ namespace OpenSim.Region.Framework.Scenes
|
||||
}
|
||||
else
|
||||
{
|
||||
// Let the SP know how we got here. This has a lot of interesting
|
||||
// uses down the line.
|
||||
sp.TeleportFlags = (TPFlags)teleportFlags;
|
||||
|
||||
if (sp.IsChildAgent)
|
||||
@@ -4294,7 +4293,6 @@ namespace OpenSim.Region.Framework.Scenes
|
||||
CapsModule.ActivateCaps(acd.circuitcode);
|
||||
}
|
||||
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user