mirror of
https://github.com/opensim/opensim.git
synced 2026-08-06 17:32:42 +08:00
- Add Util.isUUID
- Add tests for Util.isUUID - First part of the fix for protocol interoperability between viewer 1.20 and 1.21 for friend offers.
This commit is contained in:
@@ -396,6 +396,10 @@ namespace OpenSim.Region.Environment.Modules.Avatar.Friends
|
||||
|
||||
UUID transactionID = UUID.Random();
|
||||
|
||||
// 1.20 protocol sends an UUID in the message field, instead of the friendship offer text.
|
||||
// For interoperability, we have to clear that
|
||||
if (Util.isUUID(message)) message = "";
|
||||
|
||||
GridInstantMessage msg = new GridInstantMessage();
|
||||
msg.fromAgentID = fromAgentID.Guid;
|
||||
msg.fromAgentSession = UUID.Zero.Guid; // server IMs don't have a session
|
||||
|
||||
Reference in New Issue
Block a user