diff options
Diffstat (limited to 'linden')
-rw-r--r-- | linden/indra/newview/app_settings/settings.xml | 11 | ||||
-rw-r--r-- | linden/indra/newview/llprefsim.cpp | 12 | ||||
-rw-r--r-- | linden/indra/newview/llstartup.cpp | 9 |
3 files changed, 29 insertions, 3 deletions
diff --git a/linden/indra/newview/app_settings/settings.xml b/linden/indra/newview/app_settings/settings.xml index 76f549d..d6dbe1f 100644 --- a/linden/indra/newview/app_settings/settings.xml +++ b/linden/indra/newview/app_settings/settings.xml | |||
@@ -844,6 +844,17 @@ | |||
844 | <key>Value</key> | 844 | <key>Value</key> |
845 | <integer>1</integer> | 845 | <integer>1</integer> |
846 | </map> | 846 | </map> |
847 | <key>UseLegacyChatLogsFolder</key> | ||
848 | <map> | ||
849 | <key>Comment</key> | ||
850 | <string>Enable legacy chat log format (firstname_lastname instead of firstname_lastname@grid). Requires restart</string> | ||
851 | <key>Persist</key> | ||
852 | <integer>1</integer> | ||
853 | <key>Type</key> | ||
854 | <string>Boolean</string> | ||
855 | <key>Value</key> | ||
856 | <integer>0</integer> | ||
857 | </map> | ||
847 | <key>UseUTCTime</key> | 858 | <key>UseUTCTime</key> |
848 | <map> | 859 | <map> |
849 | <key>Comment</key> | 860 | <key>Comment</key> |
diff --git a/linden/indra/newview/llprefsim.cpp b/linden/indra/newview/llprefsim.cpp index 045139c..e7c39e2 100644 --- a/linden/indra/newview/llprefsim.cpp +++ b/linden/indra/newview/llprefsim.cpp | |||
@@ -190,8 +190,16 @@ void LLPrefsIMImpl::apply() | |||
190 | 190 | ||
191 | gDirUtilp->setChatLogsDir(gSavedPerAccountSettings.getString("InstantMessageLogPath")); | 191 | gDirUtilp->setChatLogsDir(gSavedPerAccountSettings.getString("InstantMessageLogPath")); |
192 | 192 | ||
193 | gDirUtilp->setPerAccountChatLogsDir(gHippoGridManager->getCurrentGridNick(), gSavedSettings.getString("FirstName"), | 193 | if (gSavedSettings.getBOOL("UseLegacyChatLogsFolder")) |
194 | gSavedSettings.getString("LastName") ); | 194 | { |
195 | gDirUtilp->setPerAccountChatLogsDir(LLStringUtil::null, | ||
196 | gSavedSettings.getString("FirstName"), gSavedSettings.getString("LastName") ); | ||
197 | } | ||
198 | else | ||
199 | { | ||
200 | gDirUtilp->setPerAccountChatLogsDir(gHippoGridManager->getCurrentGridNick(), | ||
201 | gSavedSettings.getString("FirstName"), gSavedSettings.getString("LastName") ); | ||
202 | } | ||
195 | LLFile::mkdir(gDirUtilp->getPerAccountChatLogsDir()); | 203 | LLFile::mkdir(gDirUtilp->getPerAccountChatLogsDir()); |
196 | 204 | ||
197 | bool new_im_via_email = childGetValue("send_im_to_email").asBoolean(); | 205 | bool new_im_via_email = childGetValue("send_im_to_email").asBoolean(); |
diff --git a/linden/indra/newview/llstartup.cpp b/linden/indra/newview/llstartup.cpp index a3fde55..592e938 100644 --- a/linden/indra/newview/llstartup.cpp +++ b/linden/indra/newview/llstartup.cpp | |||
@@ -936,7 +936,14 @@ bool idle_startup() | |||
936 | gDirUtilp->setChatLogsDir(gSavedPerAccountSettings.getString("InstantMessageLogPath")); | 936 | gDirUtilp->setChatLogsDir(gSavedPerAccountSettings.getString("InstantMessageLogPath")); |
937 | } | 937 | } |
938 | 938 | ||
939 | gDirUtilp->setPerAccountChatLogsDir(gHippoGridManager->getCurrentGridNick(), firstname, lastname); | 939 | if (gSavedSettings.getBOOL("UseLegacyChatLogsFolder")) |
940 | { | ||
941 | gDirUtilp->setPerAccountChatLogsDir(LLStringUtil::null, firstname, lastname); | ||
942 | } | ||
943 | else | ||
944 | { | ||
945 | gDirUtilp->setPerAccountChatLogsDir(gHippoGridManager->getCurrentGridNick(), firstname, lastname); | ||
946 | } | ||
940 | 947 | ||
941 | LLFile::mkdir(gDirUtilp->getChatLogsDir()); | 948 | LLFile::mkdir(gDirUtilp->getChatLogsDir()); |
942 | LLFile::mkdir(gDirUtilp->getPerAccountChatLogsDir()); | 949 | LLFile::mkdir(gDirUtilp->getPerAccountChatLogsDir()); |