mirror of
https://github.com/opensim/opensim.git
synced 2026-05-30 14:17:12 +08:00
* Wired up chat so that channel goes into OnChatFromViewer. However:
* There's no libsl reply packet field for it, I guess other channels than 0 makes no sense sending back to clients. * We do not currently support objects listening, so there's really no way of actually using this feature. So; somebody please wire chat all the way to the scripts.
This commit is contained in:
@@ -107,9 +107,12 @@ namespace OpenSim.Region.ClientStack
|
||||
byte type = inchatpack.ChatData.Type;
|
||||
LLVector3 fromPos = new LLVector3(); // ClientAvatar.Pos;
|
||||
LLUUID fromAgentID = AgentID;
|
||||
|
||||
int channel = inchatpack.ChatData.Channel;
|
||||
|
||||
if (OnChatFromViewer != null)
|
||||
{
|
||||
this.OnChatFromViewer(message, type, fromPos, fromName, fromAgentID);
|
||||
this.OnChatFromViewer(message, type, channel, fromPos, fromName, fromAgentID);
|
||||
}
|
||||
break;
|
||||
case PacketType.ImprovedInstantMessage:
|
||||
|
||||
Reference in New Issue
Block a user