diff options
author | Melanie | 2019-10-06 23:24:41 +0100 |
---|---|---|
committer | Melanie | 2019-10-06 23:24:41 +0100 |
commit | eb55f7f2bc3afb2477974e5417e48b8f8ee6cc65 (patch) | |
tree | 35d8479fd9142e441fb436b20ecce10877f0ace7 /OpenSim/Services/Connectors/InstantMessage | |
parent | Remove a no longer used property that used ScopeID in an improper way (diff) | |
download | opensim-SC-eb55f7f2bc3afb2477974e5417e48b8f8ee6cc65.zip opensim-SC-eb55f7f2bc3afb2477974e5417e48b8f8ee6cc65.tar.gz opensim-SC-eb55f7f2bc3afb2477974e5417e48b8f8ee6cc65.tar.bz2 opensim-SC-eb55f7f2bc3afb2477974e5417e48b8f8ee6cc65.tar.xz |
Introduce a way to send the grid's message kay, if one is used
Diffstat (limited to 'OpenSim/Services/Connectors/InstantMessage')
-rw-r--r-- | OpenSim/Services/Connectors/InstantMessage/InstantMessageServiceConnector.cs | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/OpenSim/Services/Connectors/InstantMessage/InstantMessageServiceConnector.cs b/OpenSim/Services/Connectors/InstantMessage/InstantMessageServiceConnector.cs index e19c23d..c1f23af 100644 --- a/OpenSim/Services/Connectors/InstantMessage/InstantMessageServiceConnector.cs +++ b/OpenSim/Services/Connectors/InstantMessage/InstantMessageServiceConnector.cs | |||
@@ -50,9 +50,9 @@ namespace OpenSim.Services.Connectors.InstantMessage | |||
50 | /// <param name="url">URL we pull the data out of to send the request to</param> | 50 | /// <param name="url">URL we pull the data out of to send the request to</param> |
51 | /// <param name="im">The Instant Message </param> | 51 | /// <param name="im">The Instant Message </param> |
52 | /// <returns>Bool if the message was successfully delivered at the other side.</returns> | 52 | /// <returns>Bool if the message was successfully delivered at the other side.</returns> |
53 | public static bool SendInstantMessage(string url, GridInstantMessage im) | 53 | public static bool SendInstantMessage(string url, GridInstantMessage im, string messageKey) |
54 | { | 54 | { |
55 | Hashtable xmlrpcdata = ConvertGridInstantMessageToXMLRPC(im); | 55 | Hashtable xmlrpcdata = ConvertGridInstantMessageToXMLRPC(im, messageKey); |
56 | xmlrpcdata["region_handle"] = 0; | 56 | xmlrpcdata["region_handle"] = 0; |
57 | 57 | ||
58 | ArrayList SendParams = new ArrayList(); | 58 | ArrayList SendParams = new ArrayList(); |
@@ -97,7 +97,7 @@ namespace OpenSim.Services.Connectors.InstantMessage | |||
97 | /// </summary> | 97 | /// </summary> |
98 | /// <param name="msg">The GridInstantMessage object</param> | 98 | /// <param name="msg">The GridInstantMessage object</param> |
99 | /// <returns>Hashtable containing the XMLRPC request</returns> | 99 | /// <returns>Hashtable containing the XMLRPC request</returns> |
100 | protected static Hashtable ConvertGridInstantMessageToXMLRPC(GridInstantMessage msg) | 100 | protected static Hashtable ConvertGridInstantMessageToXMLRPC(GridInstantMessage msg, string messageKey) |
101 | { | 101 | { |
102 | Hashtable gim = new Hashtable(); | 102 | Hashtable gim = new Hashtable(); |
103 | gim["from_agent_id"] = msg.fromAgentID.ToString(); | 103 | gim["from_agent_id"] = msg.fromAgentID.ToString(); |
@@ -125,6 +125,9 @@ namespace OpenSim.Services.Connectors.InstantMessage | |||
125 | gim["binary_bucket"] = Convert.ToBase64String(msg.binaryBucket, Base64FormattingOptions.None); | 125 | gim["binary_bucket"] = Convert.ToBase64String(msg.binaryBucket, Base64FormattingOptions.None); |
126 | gim["region_id"] = new UUID(msg.RegionID).ToString(); | 126 | gim["region_id"] = new UUID(msg.RegionID).ToString(); |
127 | 127 | ||
128 | if (messageKey != String.Empty) | ||
129 | gim["message_key"] = messageKey; | ||
130 | |||
128 | return gim; | 131 | return gim; |
129 | } | 132 | } |
130 | 133 | ||