aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/Environment/Modules
diff options
context:
space:
mode:
authorDahlia Trimble2009-01-26 08:04:12 +0000
committerDahlia Trimble2009-01-26 08:04:12 +0000
commitfa99f013786f282d4266553477fcb1beb078e4d0 (patch)
tree2e7d72500e672324330f1e5e3324b86c6c40ab73 /OpenSim/Region/Environment/Modules
parentMove file contents into file. (diff)
downloadopensim-SC_OLD-fa99f013786f282d4266553477fcb1beb078e4d0.zip
opensim-SC_OLD-fa99f013786f282d4266553477fcb1beb078e4d0.tar.gz
opensim-SC_OLD-fa99f013786f282d4266553477fcb1beb078e4d0.tar.bz2
opensim-SC_OLD-fa99f013786f282d4266553477fcb1beb078e4d0.tar.xz
more eventqueue IM nonsense
Diffstat (limited to 'OpenSim/Region/Environment/Modules')
-rw-r--r--OpenSim/Region/Environment/Modules/Framework/EventQueue/EventQueueHelper.cs27
1 files changed, 27 insertions, 0 deletions
diff --git a/OpenSim/Region/Environment/Modules/Framework/EventQueue/EventQueueHelper.cs b/OpenSim/Region/Environment/Modules/Framework/EventQueue/EventQueueHelper.cs
index 5f471e5..b74375f 100644
--- a/OpenSim/Region/Environment/Modules/Framework/EventQueue/EventQueueHelper.cs
+++ b/OpenSim/Region/Environment/Modules/Framework/EventQueue/EventQueueHelper.cs
@@ -275,5 +275,32 @@ namespace OpenSim.Region.Environment
275 chatterboxInvitation.Add("body", body); 275 chatterboxInvitation.Add("body", body);
276 return chatterboxInvitation; 276 return chatterboxInvitation;
277 } 277 }
278
279 public static OSD ChatterBoxSessionAgentListUpdates(UUID sessionID,
280 UUID agentID, bool canVoiceChat, bool isModerator, bool textMute)
281 {
282 OSDMap body = new OSDMap();
283 OSDMap agentUpdates = new OSDMap();
284 OSDMap infoDetail = new OSDMap();
285 OSDMap mutes = new OSDMap();
286
287 mutes.Add("text", OSD.FromBoolean(textMute));
288 infoDetail.Add("can_voice_chat", OSD.FromBoolean(canVoiceChat));
289 infoDetail.Add("is_moderator", OSD.FromBoolean(isModerator));
290 infoDetail.Add("mutes", mutes);
291 OSDMap info = new OSDMap();
292 info.Add("info", infoDetail);
293 agentUpdates.Add(agentID.ToString(), info);
294 body.Add("agent_updates", agentUpdates);
295 body.Add("session_id", OSD.FromUUID(sessionID));
296 body.Add("updates", new OSD());
297
298 OSDMap chatterBoxSessionAgentListUpdates = new OSDMap();
299 chatterBoxSessionAgentListUpdates.Add("message", OSD.FromString("ChatterBoxSessionAgentListUpdates"));
300 chatterBoxSessionAgentListUpdates.Add("body", body);
301
302 return chatterBoxSessionAgentListUpdates;
303 }
304
278 } 305 }
279} 306}