aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/Environment/Modules/XMLRPCModule.cs
diff options
context:
space:
mode:
authorJustin Clarke Casey2008-02-18 11:14:53 +0000
committerJustin Clarke Casey2008-02-18 11:14:53 +0000
commit1cbef0b9084bce0816c7ef471b3b58d1dbf9de7c (patch)
treed94dd87220392d7efcc80b35ea4d8d0d8fb4f01f /OpenSim/Region/Environment/Modules/XMLRPCModule.cs
parentSmall change to the IAgentAssetTransactions file that Chi11ken added for me (... (diff)
downloadopensim-SC_OLD-1cbef0b9084bce0816c7ef471b3b58d1dbf9de7c.zip
opensim-SC_OLD-1cbef0b9084bce0816c7ef471b3b58d1dbf9de7c.tar.gz
opensim-SC_OLD-1cbef0b9084bce0816c7ef471b3b58d1dbf9de7c.tar.bz2
opensim-SC_OLD-1cbef0b9084bce0816c7ef471b3b58d1dbf9de7c.tar.xz
Patch from Michael Osias IBM (jimbo2120)
In his own words: If a prim becomes a listener or remote channel and the script is deleted, it cannot become a listener or channel again with a new script. This patch fixes that.
Diffstat (limited to '')
-rw-r--r--OpenSim/Region/Environment/Modules/XMLRPCModule.cs19
1 files changed, 19 insertions, 0 deletions
diff --git a/OpenSim/Region/Environment/Modules/XMLRPCModule.cs b/OpenSim/Region/Environment/Modules/XMLRPCModule.cs
index 762e76d..edd1df8 100644
--- a/OpenSim/Region/Environment/Modules/XMLRPCModule.cs
+++ b/OpenSim/Region/Environment/Modules/XMLRPCModule.cs
@@ -188,6 +188,24 @@ namespace OpenSim.Region.Environment.Modules
188 return channel; 188 return channel;
189 } 189 }
190 190
191 public void DeleteChannel(LLUUID itemID)
192 {
193
194 foreach (RPCChannelInfo li in m_openChannels.Values)
195 {
196
197 if (li.GetItemID().Equals(itemID))
198 {
199
200 m_openChannels.Remove(li.GetChannelID());
201 return;
202
203 }
204
205 }
206
207 }
208
191 /********************************************** 209 /**********************************************
192 * Remote Data Reply 210 * Remote Data Reply
193 * 211 *
@@ -408,5 +426,6 @@ namespace OpenSim.Region.Environment.Modules
408 { 426 {
409 return m_localID; 427 return m_localID;
410 } 428 }
429
411 } 430 }
412} 431}