diff options
author | Melanie Thielker | 2009-03-29 05:42:27 +0000 |
---|---|---|
committer | Melanie Thielker | 2009-03-29 05:42:27 +0000 |
commit | c483206fd7ecd67ac4fc8c4e4b71f65dfd3de6c4 (patch) | |
tree | 74474e6dd9b3ed66c23c1de8af0283d3fbc0e896 /OpenSim/Region/CoreModules/Avatar/InstantMessage/InstantMessageModule.cs | |
parent | Finish the offline IM module (still needs a server). Add rudimentary (diff) | |
download | opensim-SC_OLD-c483206fd7ecd67ac4fc8c4e4b71f65dfd3de6c4.zip opensim-SC_OLD-c483206fd7ecd67ac4fc8c4e4b71f65dfd3de6c4.tar.gz opensim-SC_OLD-c483206fd7ecd67ac4fc8c4e4b71f65dfd3de6c4.tar.bz2 opensim-SC_OLD-c483206fd7ecd67ac4fc8c4e4b71f65dfd3de6c4.tar.xz |
Change the client API to use GridInstantMessage for the "last mile" of IM
sending. With this change, all methods that handle IM now use GridInstantMessage
rather than individual parameters.
Diffstat (limited to 'OpenSim/Region/CoreModules/Avatar/InstantMessage/InstantMessageModule.cs')
-rw-r--r-- | OpenSim/Region/CoreModules/Avatar/InstantMessage/InstantMessageModule.cs | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/OpenSim/Region/CoreModules/Avatar/InstantMessage/InstantMessageModule.cs b/OpenSim/Region/CoreModules/Avatar/InstantMessage/InstantMessageModule.cs index 01717ce..038f5c1 100644 --- a/OpenSim/Region/CoreModules/Avatar/InstantMessage/InstantMessageModule.cs +++ b/OpenSim/Region/CoreModules/Avatar/InstantMessage/InstantMessageModule.cs | |||
@@ -137,12 +137,14 @@ namespace OpenSim.Region.CoreModules.Avatar.InstantMessage | |||
137 | 137 | ||
138 | if ((client != null) && !success) | 138 | if ((client != null) && !success) |
139 | { | 139 | { |
140 | client.SendInstantMessage(new UUID(im.toAgentID), | 140 | client.SendInstantMessage( |
141 | "Unable to send instant message. "+ | 141 | new GridInstantMessage( |
142 | "User is not logged in.", | 142 | null, new UUID(im.fromAgentID), "System", |
143 | new UUID(im.fromAgentID), "System", | 143 | new UUID(im.toAgentID), |
144 | (byte)InstantMessageDialog.BusyAutoResponse, | 144 | (byte)InstantMessageDialog.BusyAutoResponse, |
145 | (uint)Util.UnixTimeSinceEpoch()); | 145 | "Unable to send instant message. "+ |
146 | "User is not logged in.", false, | ||
147 | new Vector3())); | ||
146 | } | 148 | } |
147 | } | 149 | } |
148 | ); | 150 | ); |