aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/OptionalModules/Scripting/Minimodule/Test
diff options
context:
space:
mode:
authorAdam Frisby2009-04-11 10:21:04 +0000
committerAdam Frisby2009-04-11 10:21:04 +0000
commitb8619386eb31a2bf3f460e464d0237f6bee5f56f (patch)
treee9a1f1559e04e3f3597aa8ed6ef37c6a63254ca2 /OpenSim/Region/OptionalModules/Scripting/Minimodule/Test
parentCorrect Opensim.ini.example to reflect the default settings for clouds. (diff)
downloadopensim-SC_OLD-b8619386eb31a2bf3f460e464d0237f6bee5f56f.zip
opensim-SC_OLD-b8619386eb31a2bf3f460e464d0237f6bee5f56f.tar.gz
opensim-SC_OLD-b8619386eb31a2bf3f460e464d0237f6bee5f56f.tar.bz2
opensim-SC_OLD-b8619386eb31a2bf3f460e464d0237f6bee5f56f.tar.xz
* Minor MRM Cleanup
* Interfaces now live in Interfaces subdirectory. * Namespace does not yet reflect this change. * Final namespace for MRMs will probably sit somewhere around OpenSim.Extend.MRM[?]
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