make "show info" and "show version" show the same version text

viewer-2-initial-appearance
Justin Clark-Casey (justincc) 2011-01-21 23:07:19 +00:00
parent 43f948d691
commit e44ceaaea3
1 changed files with 7 additions and 4 deletions

View File

@ -388,21 +388,24 @@ namespace OpenSim.Framework.Servers
break; break;
case "version": case "version":
Notice( Notice(GetVersionText());
String.Format(
"Version: {0} (interface version {1})", m_version, VersionInfo.MajorInterfaceVersion));
break; break;
} }
} }
protected void ShowInfo() protected void ShowInfo()
{ {
Notice("Version: " + m_version); Notice(GetVersionText());
Notice("Startup directory: " + m_startupDirectory); Notice("Startup directory: " + m_startupDirectory);
if (null != m_consoleAppender) if (null != m_consoleAppender)
Notice(String.Format("Console log level: {0}", m_consoleAppender.Threshold)); Notice(String.Format("Console log level: {0}", m_consoleAppender.Threshold));
} }
protected string GetVersionText()
{
return String.Format("Version: {0} (interface version {1})", m_version, VersionInfo.MajorInterfaceVersion);
}
/// <summary> /// <summary>
/// Console output is only possible if a console has been established. /// Console output is only possible if a console has been established.
/// That is something that cannot be determined within this class. So /// That is something that cannot be determined within this class. So