aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim
diff options
context:
space:
mode:
authorMic Bowman2012-03-15 13:37:43 -0700
committerMic Bowman2012-03-15 13:37:43 -0700
commit8b5298a62eb6910ac228b3fe0ab328b6aea79794 (patch)
tree932cf594a6469eff3ba211ceb92c2418ba15a2fd /OpenSim
parentAdds a new script command 'modInvoke' to invoke registered functions (diff)
downloadopensim-SC_OLD-8b5298a62eb6910ac228b3fe0ab328b6aea79794.zip
opensim-SC_OLD-8b5298a62eb6910ac228b3fe0ab328b6aea79794.tar.gz
opensim-SC_OLD-8b5298a62eb6910ac228b3fe0ab328b6aea79794.tar.bz2
opensim-SC_OLD-8b5298a62eb6910ac228b3fe0ab328b6aea79794.tar.xz
Protect the scriptmodulecomms interface.
Diffstat (limited to 'OpenSim')
-rw-r--r--OpenSim/Region/ScriptEngine/Shared/CodeTools/CSCodeGenerator.cs5
1 files changed, 4 insertions, 1 deletions
diff --git a/OpenSim/Region/ScriptEngine/Shared/CodeTools/CSCodeGenerator.cs b/OpenSim/Region/ScriptEngine/Shared/CodeTools/CSCodeGenerator.cs
index 28c031f..b24f016 100644
--- a/OpenSim/Region/ScriptEngine/Shared/CodeTools/CSCodeGenerator.cs
+++ b/OpenSim/Region/ScriptEngine/Shared/CodeTools/CSCodeGenerator.cs
@@ -876,7 +876,10 @@ namespace OpenSim.Region.ScriptEngine.Shared.CodeTools
876 { 876 {
877 string retstr = String.Empty; 877 string retstr = String.Empty;
878 878
879 string modinvoke = m_comms.LookupModInvocation(fc.Id); 879 string modinvoke = null;
880 if (m_comms != null)
881 modinvoke = m_comms.LookupModInvocation(fc.Id);
882
880 if (modinvoke != null) 883 if (modinvoke != null)
881 { 884 {
882 if (fc.kids[0] is ArgumentList) 885 if (fc.kids[0] is ArgumentList)