diff options
author | Adam Frisby | 2009-04-11 10:21:04 +0000 |
---|---|---|
committer | Adam Frisby | 2009-04-11 10:21:04 +0000 |
commit | b8619386eb31a2bf3f460e464d0237f6bee5f56f (patch) | |
tree | e9a1f1559e04e3f3597aa8ed6ef37c6a63254ca2 /OpenSim/Region/OptionalModules/Scripting/Minimodule/Test/DrunkenTextAppreciationModule.cs | |
parent | Correct Opensim.ini.example to reflect the default settings for clouds. (diff) | |
download | opensim-SC-b8619386eb31a2bf3f460e464d0237f6bee5f56f.zip opensim-SC-b8619386eb31a2bf3f460e464d0237f6bee5f56f.tar.gz opensim-SC-b8619386eb31a2bf3f460e464d0237f6bee5f56f.tar.bz2 opensim-SC-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/DrunkenTextAppreciationModule.cs')
-rw-r--r-- | OpenSim/Region/OptionalModules/Scripting/Minimodule/Test/DrunkenTextAppreciationModule.cs | 18 |
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 | ||