diff options
converted hard-coded chat type values to ChatTypeEnum
Diffstat (limited to 'OpenSim/Grid/ScriptEngine/DotNetEngine/Compiler/Server_API/LSL_BuiltIn_Commands.cs')
-rw-r--r-- | OpenSim/Grid/ScriptEngine/DotNetEngine/Compiler/Server_API/LSL_BuiltIn_Commands.cs | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/OpenSim/Grid/ScriptEngine/DotNetEngine/Compiler/Server_API/LSL_BuiltIn_Commands.cs b/OpenSim/Grid/ScriptEngine/DotNetEngine/Compiler/Server_API/LSL_BuiltIn_Commands.cs index 7bc3ce4..64921d7 100644 --- a/OpenSim/Grid/ScriptEngine/DotNetEngine/Compiler/Server_API/LSL_BuiltIn_Commands.cs +++ b/OpenSim/Grid/ScriptEngine/DotNetEngine/Compiler/Server_API/LSL_BuiltIn_Commands.cs | |||
@@ -270,24 +270,20 @@ namespace OpenSim.Grid.ScriptEngine.DotNetEngine.Compiler | |||
270 | 270 | ||
271 | public void llWhisper(int channelID, string text) | 271 | public void llWhisper(int channelID, string text) |
272 | { | 272 | { |
273 | //type for whisper is 0 | ||
274 | World.SimChat(Helpers.StringToField(text), | 273 | World.SimChat(Helpers.StringToField(text), |
275 | 0, channelID, m_host.AbsolutePosition, m_host.Name, m_host.UUID); | 274 | ChatTypeEnum.Whisper, channelID, m_host.AbsolutePosition, m_host.Name, m_host.UUID); |
276 | } | 275 | } |
277 | 276 | ||
278 | public void llSay(int channelID, string text) | 277 | public void llSay(int channelID, string text) |
279 | { | 278 | { |
280 | //type for say is 1 | ||
281 | |||
282 | World.SimChat(Helpers.StringToField(text), | 279 | World.SimChat(Helpers.StringToField(text), |
283 | 1, channelID, m_host.AbsolutePosition, m_host.Name, m_host.UUID); | 280 | ChatTypeEnum.Say, channelID, m_host.AbsolutePosition, m_host.Name, m_host.UUID); |
284 | } | 281 | } |
285 | 282 | ||
286 | public void llShout(int channelID, string text) | 283 | public void llShout(int channelID, string text) |
287 | { | 284 | { |
288 | //type for shout is 2 | ||
289 | World.SimChat(Helpers.StringToField(text), | 285 | World.SimChat(Helpers.StringToField(text), |
290 | 2, channelID, m_host.AbsolutePosition, m_host.Name, m_host.UUID); | 286 | ChatTypeEnum.Shout, channelID, m_host.AbsolutePosition, m_host.Name, m_host.UUID); |
291 | } | 287 | } |
292 | 288 | ||
293 | public int llListen(int channelID, string name, string ID, string msg) | 289 | public int llListen(int channelID, string name, string ID, string msg) |