mirror of
https://github.com/opensim/opensim.git
synced 2026-07-02 00:15:45 +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:
@@ -168,7 +168,7 @@ namespace OpenSim.Region.ScriptEngine.DotNetEngine.Compiler
|
||||
{
|
||||
//type for whisper is 0
|
||||
World.SimChat(Helpers.StringToField(text),
|
||||
0, m_host.AbsolutePosition, m_host.Name, m_host.UUID);
|
||||
0, channelID, m_host.AbsolutePosition, m_host.Name, m_host.UUID);
|
||||
}
|
||||
|
||||
public void llSay(int channelID, string text)
|
||||
@@ -176,14 +176,14 @@ namespace OpenSim.Region.ScriptEngine.DotNetEngine.Compiler
|
||||
//type for say is 1
|
||||
|
||||
World.SimChat(Helpers.StringToField(text),
|
||||
1, m_host.AbsolutePosition, m_host.Name, m_host.UUID);
|
||||
1, channelID, m_host.AbsolutePosition, m_host.Name, m_host.UUID);
|
||||
}
|
||||
|
||||
public void llShout(int channelID, string text)
|
||||
{
|
||||
//type for shout is 2
|
||||
World.SimChat(Helpers.StringToField(text),
|
||||
2, m_host.AbsolutePosition, m_host.Name, m_host.UUID);
|
||||
2, channelID, m_host.AbsolutePosition, m_host.Name, m_host.UUID);
|
||||
}
|
||||
|
||||
public int llListen(int channelID, string name, string ID, string msg) { return 0; }
|
||||
|
||||
@@ -197,7 +197,7 @@ namespace OpenSim.Region.ScriptEngine.DotNetEngine
|
||||
IScriptHost m_host = m_ScriptEngine.World.GetSceneObjectPart(QIS.localID);
|
||||
//if (m_host != null)
|
||||
//{
|
||||
m_ScriptEngine.World.SimChat(Helpers.StringToField(text), 1, m_host.AbsolutePosition, m_host.Name, m_host.UUID);
|
||||
m_ScriptEngine.World.SimChat(Helpers.StringToField(text), 1, 0, m_host.AbsolutePosition, m_host.Name, m_host.UUID);
|
||||
} catch {
|
||||
//}
|
||||
//else
|
||||
|
||||
@@ -310,7 +310,7 @@ namespace OpenSim.Region.ScriptEngine.DotNetEngine
|
||||
string text = "Error compiling script:\r\n" + e.Message.ToString();
|
||||
if (text.Length > 1500)
|
||||
text = text.Substring(0, 1500);
|
||||
World.SimChat(Helpers.StringToField(text), 1, m_host.AbsolutePosition, m_host.Name, m_host.UUID);
|
||||
World.SimChat(Helpers.StringToField(text), 1, 0, m_host.AbsolutePosition, m_host.Name, m_host.UUID);
|
||||
}
|
||||
catch (Exception e2)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user