From 9170361bee439ccd7f25030fcfb14701a4e8add0 Mon Sep 17 00:00:00 2001 From: Justin Clarke Casey Date: Mon, 15 Sep 2008 17:45:48 +0000 Subject: * Complete refactoring accidentally left unfinished so that all server help requests flow through the ShowHelp() method --- OpenSim/Grid/MessagingServer/Main.cs | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) (limited to 'OpenSim/Grid/MessagingServer/Main.cs') 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 switch (cmd) { - case "help": - m_console.Notice("clear-cache - Clears region cache. Should be done when regions change position. The region cache gets stale after a while."); - break; case "clear-cache": int entries = msgsvc.ClearRegionCache(); m_console.Notice("Region cache cleared! Cleared " + entries.ToString() + " entries"); break; } } + + protected override void ShowHelp(string[] helpArgs) + { + base.ShowHelp(helpArgs); + + m_console.Notice("clear-cache - Clears region cache. Should be done when regions change position. The region cache gets stale after a while."); + } public override void Shutdown() { -- cgit v1.1