mirror of
https://github.com/opensim/opensim.git
synced 2026-08-08 02:05:34 +08:00
a few changes cosmetic changes around OSChatMessage...
This commit is contained in:
@@ -517,31 +517,32 @@ namespace OpenSim.Region.OptionalModules.Avatar.Concierge
|
||||
|
||||
protected void AnnounceToAgentsRegion(IScene scene, string msg)
|
||||
{
|
||||
OSChatMessage c = new OSChatMessage();
|
||||
c.Message = msg;
|
||||
c.Type = ChatTypeEnum.Say;
|
||||
c.Channel = 0;
|
||||
c.Position = PosOfGod;
|
||||
c.From = m_whoami;
|
||||
c.Sender = null;
|
||||
c.SenderUUID = UUID.Zero;
|
||||
c.Scene = scene;
|
||||
|
||||
if (scene is Scene)
|
||||
(scene as Scene).EventManager.TriggerOnChatBroadcast(this, c);
|
||||
if(scene is Scene)
|
||||
{
|
||||
OSChatMessage c = new OSChatMessage()
|
||||
{
|
||||
Message = msg,
|
||||
Type = ChatTypeEnum.Say,
|
||||
Channel = 0,
|
||||
Position = PosOfGod,
|
||||
From = m_whoami,
|
||||
Scene = scene
|
||||
};
|
||||
(scene as Scene)?.EventManager.TriggerOnChatBroadcast(this, c);
|
||||
}
|
||||
}
|
||||
|
||||
protected void AnnounceToAgent(ScenePresence agent, string msg)
|
||||
{
|
||||
OSChatMessage c = new OSChatMessage();
|
||||
c.Message = msg;
|
||||
c.Type = ChatTypeEnum.Say;
|
||||
c.Channel = 0;
|
||||
c.Position = PosOfGod;
|
||||
c.From = m_whoami;
|
||||
c.Sender = null;
|
||||
c.SenderUUID = UUID.Zero;
|
||||
c.Scene = agent.Scene;
|
||||
OSChatMessage c = new OSChatMessage
|
||||
{
|
||||
Message = msg,
|
||||
Type = ChatTypeEnum.Say,
|
||||
Channel = 0,
|
||||
Position = PosOfGod,
|
||||
From = m_whoami,
|
||||
Scene = agent.Scene
|
||||
};
|
||||
|
||||
agent.ControllingClient.SendChatMessage(
|
||||
msg, (byte) ChatTypeEnum.Say, PosOfGod, m_whoami, UUID.Zero, UUID.Zero,
|
||||
|
||||
Reference in New Issue
Block a user