mirror of
https://github.com/opensim/opensim.git
synced 2026-08-04 16:22:50 +08:00
cosmetics
This commit is contained in:
@@ -163,10 +163,10 @@ namespace OpenSim.Region.CoreModules.Avatar.InstantMessage
|
||||
// Is the user a local user?
|
||||
string url = string.Empty;
|
||||
bool foreigner = false;
|
||||
if (UserManagementModule != null && !UserManagementModule.IsLocalGridUser(toAgentID)) // foreign user
|
||||
if (UserManagementModule != null) // foreign user
|
||||
{
|
||||
url = UserManagementModule.GetUserServerURL(toAgentID, "IMServerURI");
|
||||
foreigner = true;
|
||||
foreigner = UserManagementModule.IsLocalGridUser(toAgentID);
|
||||
}
|
||||
|
||||
Util.FireAndForget(delegate
|
||||
@@ -178,12 +178,12 @@ namespace OpenSim.Region.CoreModules.Avatar.InstantMessage
|
||||
m_log.DebugFormat("[HG MESSAGE TRANSFER]: Got UUI {0}", recipientUUI);
|
||||
if (recipientUUI != string.Empty)
|
||||
{
|
||||
UUID id; string u = string.Empty, first = string.Empty, last = string.Empty, secret = string.Empty;
|
||||
if (Util.ParseUniversalUserIdentifier(recipientUUI, out id, out u, out first, out last, out secret))
|
||||
UUID id; string tourl = string.Empty, first = string.Empty, last = string.Empty, secret = string.Empty;
|
||||
if (Util.ParseUniversalUserIdentifier(recipientUUI, out id, out tourl, out first, out last, out secret))
|
||||
{
|
||||
success = m_IMService.OutgoingInstantMessage(im, u, true);
|
||||
success = m_IMService.OutgoingInstantMessage(im, tourl, true);
|
||||
if (success)
|
||||
UserManagementModule.AddUser(toAgentID, u + ";" + first + " " + last);
|
||||
UserManagementModule.AddUser(toAgentID, first, last, tourl);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user