* Allows standalone region users to skip the "You must wait 5 minutes to log again" message and

allow the region to kick the old user and log the new one without reporting any failure.
Default is still to show message and fail login
This commit is contained in:
Arthur Valadares
2009-05-29 22:38:18 +00:00
parent 8545621d9b
commit d0084f08f2
4 changed files with 32 additions and 5 deletions

View File

@@ -61,6 +61,8 @@ namespace OpenSim.Framework.Communications.Services
protected uint m_defaultHomeX;
protected uint m_defaultHomeY;
protected bool m_warn_already_logged = true;
/// <summary>
/// Used by the login service to make requests to the inventory service.
/// </summary>
@@ -181,11 +183,20 @@ namespace OpenSim.Framework.Communications.Services
// Reject the login
m_log.InfoFormat(
"[LOGIN END]: XMLRPC Notifying user {0} {1} that they are already logged in",
firstname, lastname);
if (m_warn_already_logged)
{
m_log.InfoFormat(
"[LOGIN END]: XMLRPC Notifying user {0} {1} that they are already logged in",
firstname, lastname);
return logResponse.CreateAlreadyLoggedInResponse();
return logResponse.CreateAlreadyLoggedInResponse();
}
else
{
m_log.InfoFormat(
"[LOGIN]: User {0} {1} is already logged in, not notifying user, kicking old presence and starting new login.",
firstname, lastname);
}
}
// Otherwise...