aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/OptionalModules/Scripting/Minimodule/Test
diff options
context:
space:
mode:
Diffstat (limited to 'OpenSim/Region/OptionalModules/Scripting/Minimodule/Test')
-rw-r--r--OpenSim/Region/OptionalModules/Scripting/Minimodule/Test/DrunkenTextAppreciationModule.cs18
1 files changed, 13 insertions, 5 deletions
diff --git a/OpenSim/Region/OptionalModules/Scripting/Minimodule/Test/DrunkenTextAppreciationModule.cs b/OpenSim/Region/OptionalModules/Scripting/Minimodule/Test/DrunkenTextAppreciationModule.cs
index 7e8db9c..755831c 100644
--- a/OpenSim/Region/OptionalModules/Scripting/Minimodule/Test/DrunkenTextAppreciationModule.cs
+++ b/OpenSim/Region/OptionalModules/Scripting/Minimodule/Test/DrunkenTextAppreciationModule.cs
@@ -38,13 +38,21 @@ namespace OpenSim
38 38
39 void World_OnChat(IWorld sender, ChatEventArgs e) 39 void World_OnChat(IWorld sender, ChatEventArgs e)
40 { 40 {
41 if(!e.Text.Contains("hic!")) 41 if (e.Sender is IAvatar)
42 { 42 {
43 e.Text = e.Text.Replace("s", "sh"); 43 if (!e.Text.Contains("hic!"))
44 e.Text = e.Text.Replace("S", "Sh"); 44 {
45 e.Text += " ...hic!"; 45 e.Text = e.Text.Replace("s", "sh");
46 e.Text = e.Text.Replace("S", "Sh");
47 e.Text += " ...hic!";
46 48
47 Host.Object.Say(e.Text); 49 Host.Object.Say(e.Text);
50 }
51 }
52
53 if(e.Sender is IObject)
54 {
55 // Ignore
48 } 56 }
49 } 57 }
50 58