aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Framework/Servers/ServerBase.cs
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--OpenSim/Framework/Servers/ServerBase.cs12
1 files changed, 12 insertions, 0 deletions
diff --git a/OpenSim/Framework/Servers/ServerBase.cs b/OpenSim/Framework/Servers/ServerBase.cs
index afe1f73..0835aad 100644
--- a/OpenSim/Framework/Servers/ServerBase.cs
+++ b/OpenSim/Framework/Servers/ServerBase.cs
@@ -49,6 +49,18 @@ namespace OpenSim.Framework.Servers
49 m_startuptime = DateTime.Now; 49 m_startuptime = DateTime.Now;
50 } 50 }
51 51
52 /// <summary>
53 /// Register common commands once m_console has been set if it is going to be set
54 /// </summary>
55 public void RegisterCommonCommands()
56 {
57 if (m_console == null)
58 return;
59
60 m_console.Commands.AddCommand(
61 "General", false, "show uptime", "show uptime", "Show server uptime", HandleShow);
62 }
63
52 public virtual void HandleShow(string module, string[] cmd) 64 public virtual void HandleShow(string module, string[] cmd)
53 { 65 {
54 List<string> args = new List<string>(cmd); 66 List<string> args = new List<string>(cmd);