Groups: Better warning messages to the user.
parent
1b94de8e58
commit
7eee9eb312
|
@ -991,6 +991,10 @@ namespace OpenSim.Groups
|
||||||
|
|
||||||
// Should this send updates to everyone in the group?
|
// Should this send updates to everyone in the group?
|
||||||
SendAgentGroupDataUpdate(remoteClient, GetRequestingAgentID(remoteClient));
|
SendAgentGroupDataUpdate(remoteClient, GetRequestingAgentID(remoteClient));
|
||||||
|
|
||||||
|
if (reason != string.Empty)
|
||||||
|
// A warning
|
||||||
|
remoteClient.SendAlertMessage("Warning: " + reason);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
remoteClient.SendJoinGroupReply(groupID, false);
|
remoteClient.SendJoinGroupReply(groupID, false);
|
||||||
|
|
|
@ -399,17 +399,21 @@ namespace OpenSim.Groups
|
||||||
|
|
||||||
if (success)
|
if (success)
|
||||||
{
|
{
|
||||||
|
// Here we always return true. The user has been added to the local group,
|
||||||
|
// independent of whether the remote operation succeeds or not
|
||||||
url = m_UserManagement.GetUserServerURL(uid, "GroupsServerURI");
|
url = m_UserManagement.GetUserServerURL(uid, "GroupsServerURI");
|
||||||
if (url == string.Empty)
|
if (url == string.Empty)
|
||||||
{
|
{
|
||||||
reason = "User doesn't have a groups server";
|
reason = "You don't have have an accessible groups server in your home world. You membership to this group in only within this grid.";
|
||||||
return false;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
GroupsServiceHGConnector c = GetConnector(url);
|
GroupsServiceHGConnector c = GetConnector(url);
|
||||||
if (c != null)
|
if (c != null)
|
||||||
return c.CreateProxy(AgentUUI(RequestingAgentID), AgentID, token, GroupID, m_LocalGroupsServiceLocation, name, out reason);
|
c.CreateProxy(AgentUUI(RequestingAgentID), AgentID, token, GroupID, m_LocalGroupsServiceLocation, name, out reason);
|
||||||
|
return true;
|
||||||
}
|
}
|
||||||
|
return false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else if (m_UserManagement.IsLocalGridUser(uid)) // local user
|
else if (m_UserManagement.IsLocalGridUser(uid)) // local user
|
||||||
|
|
Loading…
Reference in New Issue