aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Framework/Servers/ServerBase.cs
diff options
context:
space:
mode:
authorJustin Clark-Casey (justincc)2012-11-22 04:11:03 +0000
committerJustin Clark-Casey (justincc)2012-11-22 04:11:03 +0000
commitcf03d6ea9223e71c27ca91633a30abcf1368ec58 (patch)
tree633becd54bea45479837debfeea41f73fabe4cda /OpenSim/Framework/Servers/ServerBase.cs
parentfactor out common HandleShow code for "show uptime" (diff)
downloadopensim-SC-cf03d6ea9223e71c27ca91633a30abcf1368ec58.zip
opensim-SC-cf03d6ea9223e71c27ca91633a30abcf1368ec58.tar.gz
opensim-SC-cf03d6ea9223e71c27ca91633a30abcf1368ec58.tar.bz2
opensim-SC-cf03d6ea9223e71c27ca91633a30abcf1368ec58.tar.xz
Factor out common registration of "show uptime" command
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);