From 7fbc3266dfb5e923fb240fe81591fc96691a06b9 Mon Sep 17 00:00:00 2001 From: MW Date: Mon, 13 Aug 2007 13:41:54 +0000 Subject: The Welcome message /message of the day shown in the client during login, can now be set from the .INI file for standalone mode (change the standalone_welcome = "Welcome to OpenSim" line). --- OpenSim/Region/Application/OpenSimMain.cs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'OpenSim/Region/Application') diff --git a/OpenSim/Region/Application/OpenSimMain.cs b/OpenSim/Region/Application/OpenSimMain.cs index 6c49817..ca95a8d 100644 --- a/OpenSim/Region/Application/OpenSimMain.cs +++ b/OpenSim/Region/Application/OpenSimMain.cs @@ -72,6 +72,8 @@ namespace OpenSim private string m_logFilename = ("region-console.log"); private bool standaloneAuthenticate = false; + private string welcomeMessage = null; + public ConsoleCommand CreateAccount = null; public OpenSimMain(IConfigSource configSource) @@ -104,6 +106,7 @@ namespace OpenSim m_storageDLL = configSource.Configs["Startup"].GetString("storage_plugin", "OpenSim.DataStore.NullStorage.dll"); standaloneAuthenticate = configSource.Configs["Startup"].GetBoolean("standalone_authenticate", false); + welcomeMessage = configSource.Configs["Startup"].GetString("standalone_welcome", "Welcome to OpenSim"); } /// @@ -123,7 +126,7 @@ namespace OpenSim if (m_sandbox) { - CommunicationsLocal localComms = new CommunicationsLocal(m_networkServersInfo, m_httpServer, m_assetCache, standaloneAuthenticate); + CommunicationsLocal localComms = new CommunicationsLocal(m_networkServersInfo, m_httpServer, m_assetCache, standaloneAuthenticate, welcomeMessage); m_commsManager = localComms; if(standaloneAuthenticate) { -- cgit v1.1