aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Grid
diff options
context:
space:
mode:
authorMelanie Thielker2009-02-10 23:15:48 +0000
committerMelanie Thielker2009-02-10 23:15:48 +0000
commit9bfbfa381abc92f3c5fc8e97405943128c85c5d4 (patch)
tree06248d4262cfd0e053010d6b8b6a19b8f6db2d40 /OpenSim/Grid
parentFixes the problem of attachment offset after crossings/TPs. Hopefully it fixe... (diff)
downloadopensim-SC_OLD-9bfbfa381abc92f3c5fc8e97405943128c85c5d4.zip
opensim-SC_OLD-9bfbfa381abc92f3c5fc8e97405943128c85c5d4.tar.gz
opensim-SC_OLD-9bfbfa381abc92f3c5fc8e97405943128c85c5d4.tar.bz2
opensim-SC_OLD-9bfbfa381abc92f3c5fc8e97405943128c85c5d4.tar.xz
Add proper handling for shared vs. unshared modules to the command
interface. Shared modules will now only get added once, so the command handler is called once per module, not once per scene. Removal of scenes has no adverse effects. Nonshared modules will be called for each scene.
Diffstat (limited to 'OpenSim/Grid')
-rw-r--r--OpenSim/Grid/GridServer/GridServerBase.cs8
-rw-r--r--OpenSim/Grid/InventoryServer/Main.cs2
-rw-r--r--OpenSim/Grid/MessagingServer/Main.cs4
-rw-r--r--OpenSim/Grid/UserServer/Main.cs14
4 files changed, 15 insertions, 13 deletions
diff --git a/OpenSim/Grid/GridServer/GridServerBase.cs b/OpenSim/Grid/GridServer/GridServerBase.cs
index 3fb07b5..9cc25e8 100644
--- a/OpenSim/Grid/GridServer/GridServerBase.cs
+++ b/OpenSim/Grid/GridServer/GridServerBase.cs
@@ -114,15 +114,17 @@ namespace OpenSim.Grid.GridServer
114 114
115 base.StartupSpecific(); 115 base.StartupSpecific();
116 116
117 m_console.Commands.AddCommand("gridserver", "enable registration", 117 m_console.Commands.AddCommand("gridserver", false,
118 "enable registration",
118 "enable registration", 119 "enable registration",
119 "Enable new regions to register", HandleRegistration); 120 "Enable new regions to register", HandleRegistration);
120 121
121 m_console.Commands.AddCommand("gridserver", "disable registration", 122 m_console.Commands.AddCommand("gridserver", false,
123 "disable registration",
122 "disable registration", 124 "disable registration",
123 "Disable registering new regions", HandleRegistration); 125 "Disable registering new regions", HandleRegistration);
124 126
125 m_console.Commands.AddCommand("gridserver", "show status", 127 m_console.Commands.AddCommand("gridserver", false, "show status",
126 "show status", 128 "show status",
127 "Show registration status", HandleShowStatus); 129 "Show registration status", HandleShowStatus);
128 } 130 }
diff --git a/OpenSim/Grid/InventoryServer/Main.cs b/OpenSim/Grid/InventoryServer/Main.cs
index 4727f6e..862ae58 100644
--- a/OpenSim/Grid/InventoryServer/Main.cs
+++ b/OpenSim/Grid/InventoryServer/Main.cs
@@ -80,7 +80,7 @@ namespace OpenSim.Grid.InventoryServer
80 80
81 base.StartupSpecific(); 81 base.StartupSpecific();
82 82
83 m_console.Commands.AddCommand("inventoryserver", "add user", 83 m_console.Commands.AddCommand("inventoryserver", false, "add user",
84 "add user", 84 "add user",
85 "Add a random user inventory", HandleAddUser); 85 "Add a random user inventory", HandleAddUser);
86 } 86 }
diff --git a/OpenSim/Grid/MessagingServer/Main.cs b/OpenSim/Grid/MessagingServer/Main.cs
index 9b7e731..13f52ab 100644
--- a/OpenSim/Grid/MessagingServer/Main.cs
+++ b/OpenSim/Grid/MessagingServer/Main.cs
@@ -127,11 +127,11 @@ namespace OpenSim.Grid.MessagingServer
127 127
128 base.StartupSpecific(); 128 base.StartupSpecific();
129 129
130 m_console.Commands.AddCommand("messageserver", "clear cache", 130 m_console.Commands.AddCommand("messageserver", false, "clear cache",
131 "clear cache", 131 "clear cache",
132 "Clear presence cache", HandleClearCache); 132 "Clear presence cache", HandleClearCache);
133 133
134 m_console.Commands.AddCommand("messageserver", "register", 134 m_console.Commands.AddCommand("messageserver", false, "register",
135 "register", 135 "register",
136 "Re-register with user server(s)", HandleRegister); 136 "Re-register with user server(s)", HandleRegister);
137 } 137 }
diff --git a/OpenSim/Grid/UserServer/Main.cs b/OpenSim/Grid/UserServer/Main.cs
index 0b0bee1..dd3f0b7 100644
--- a/OpenSim/Grid/UserServer/Main.cs
+++ b/OpenSim/Grid/UserServer/Main.cs
@@ -122,32 +122,32 @@ namespace OpenSim.Grid.UserServer
122 122
123 base.StartupSpecific(); 123 base.StartupSpecific();
124 124
125 m_console.Commands.AddCommand("userserver", "create user", 125 m_console.Commands.AddCommand("userserver", false, "create user",
126 "create user [<first> [<last> [<x> <y> [email]]]]", 126 "create user [<first> [<last> [<x> <y> [email]]]]",
127 "Create a new user account", RunCommand); 127 "Create a new user account", RunCommand);
128 128
129 m_console.Commands.AddCommand("userserver", "reset user password", 129 m_console.Commands.AddCommand("userserver", false, "reset user password",
130 "reset user password [<first> [<last> [<new password>]]]", 130 "reset user password [<first> [<last> [<new password>]]]",
131 "Reset a user's password", RunCommand); 131 "Reset a user's password", RunCommand);
132 132
133 m_console.Commands.AddCommand("userserver", "login level", 133 m_console.Commands.AddCommand("userserver", false, "login level",
134 "login level <level>", 134 "login level <level>",
135 "Set the minimum user level to log in", HandleLoginCommand); 135 "Set the minimum user level to log in", HandleLoginCommand);
136 136
137 m_console.Commands.AddCommand("userserver", "login reset", 137 m_console.Commands.AddCommand("userserver", false, "login reset",
138 "login reset", 138 "login reset",
139 "Reset the login level to allow all users", 139 "Reset the login level to allow all users",
140 HandleLoginCommand); 140 HandleLoginCommand);
141 141
142 m_console.Commands.AddCommand("userserver", "login text", 142 m_console.Commands.AddCommand("userserver", false, "login text",
143 "login text <text>", 143 "login text <text>",
144 "Set the text users will see on login", HandleLoginCommand); 144 "Set the text users will see on login", HandleLoginCommand);
145 145
146 m_console.Commands.AddCommand("userserver", "test-inventory", 146 m_console.Commands.AddCommand("userserver", false, "test-inventory",
147 "test-inventory", 147 "test-inventory",
148 "Perform a test inventory transaction", RunCommand); 148 "Perform a test inventory transaction", RunCommand);
149 149
150 m_console.Commands.AddCommand("userserver", "logoff-user", 150 m_console.Commands.AddCommand("userserver", false, "logoff-user",
151 "logoff-user <first> <last> <message>", 151 "logoff-user <first> <last> <message>",
152 "Log off a named user", RunCommand); 152 "Log off a named user", RunCommand);
153 } 153 }