aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Grid
diff options
context:
space:
mode:
authorJustin Clarke Casey2008-09-15 17:45:48 +0000
committerJustin Clarke Casey2008-09-15 17:45:48 +0000
commit9170361bee439ccd7f25030fcfb14701a4e8add0 (patch)
tree65abfc214b267b665daf3e419f26bb23a58f3e60 /OpenSim/Grid
parent* Add "reset user password" command to standalone region console (diff)
downloadopensim-SC_OLD-9170361bee439ccd7f25030fcfb14701a4e8add0.zip
opensim-SC_OLD-9170361bee439ccd7f25030fcfb14701a4e8add0.tar.gz
opensim-SC_OLD-9170361bee439ccd7f25030fcfb14701a4e8add0.tar.bz2
opensim-SC_OLD-9170361bee439ccd7f25030fcfb14701a4e8add0.tar.xz
* Complete refactoring accidentally left unfinished so that all server help requests flow through the ShowHelp() method
Diffstat (limited to '')
-rw-r--r--OpenSim/Grid/MessagingServer/Main.cs10
-rw-r--r--OpenSim/Grid/UserServer/Main.cs15
2 files changed, 16 insertions, 9 deletions
diff --git a/OpenSim/Grid/MessagingServer/Main.cs b/OpenSim/Grid/MessagingServer/Main.cs
index c73facb..c64c74e 100644
--- a/OpenSim/Grid/MessagingServer/Main.cs
+++ b/OpenSim/Grid/MessagingServer/Main.cs
@@ -150,15 +150,19 @@ namespace OpenSim.Grid.MessagingServer
150 150
151 switch (cmd) 151 switch (cmd)
152 { 152 {
153 case "help":
154 m_console.Notice("clear-cache - Clears region cache. Should be done when regions change position. The region cache gets stale after a while.");
155 break;
156 case "clear-cache": 153 case "clear-cache":
157 int entries = msgsvc.ClearRegionCache(); 154 int entries = msgsvc.ClearRegionCache();
158 m_console.Notice("Region cache cleared! Cleared " + entries.ToString() + " entries"); 155 m_console.Notice("Region cache cleared! Cleared " + entries.ToString() + " entries");
159 break; 156 break;
160 } 157 }
161 } 158 }
159
160 protected override void ShowHelp(string[] helpArgs)
161 {
162 base.ShowHelp(helpArgs);
163
164 m_console.Notice("clear-cache - Clears region cache. Should be done when regions change position. The region cache gets stale after a while.");
165 }
162 166
163 public override void Shutdown() 167 public override void Shutdown()
164 { 168 {
diff --git a/OpenSim/Grid/UserServer/Main.cs b/OpenSim/Grid/UserServer/Main.cs
index 94e0728..0a64925 100644
--- a/OpenSim/Grid/UserServer/Main.cs
+++ b/OpenSim/Grid/UserServer/Main.cs
@@ -227,12 +227,6 @@ namespace OpenSim.Grid.UserServer
227 227
228 switch (cmd) 228 switch (cmd)
229 { 229 {
230 case "help":
231 m_console.Notice("create user - create a new user");
232 m_console.Notice(
233 "logoff-user <firstname> <lastname> <message> - logs off the specified user from the grid");
234 break;
235
236 case "create": 230 case "create":
237 do_create(cmdparams[0]); 231 do_create(cmdparams[0]);
238 break; 232 break;
@@ -309,6 +303,15 @@ namespace OpenSim.Grid.UserServer
309 break; 303 break;
310 } 304 }
311 } 305 }
306
307 protected override void ShowHelp(string[] helpArgs)
308 {
309 base.ShowHelp(helpArgs);
310
311 m_console.Notice("create user - create a new user");
312 m_console.Notice(
313 "logoff-user <firstname> <lastname> <message> - logs off the specified user from the grid");
314 }
312 315
313 public override void Shutdown() 316 public override void Shutdown()
314 { 317 {