Quick fix for chatlogs being dumped into running directory instead of user directory.
This commit is contained in:
@@ -1004,7 +1004,18 @@ bool idle_startup()
|
|||||||
{
|
{
|
||||||
gDirUtilp->setChatLogsDir(gSavedPerAccountSettings.getString("InstantMessageLogPath"));
|
gDirUtilp->setChatLogsDir(gSavedPerAccountSettings.getString("InstantMessageLogPath"));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
//Get these logs out of my newview root directory, PLEASE.
|
||||||
|
if (gHippoGridManager->getCurrentGrid()->isSecondLife())
|
||||||
|
{
|
||||||
|
gDirUtilp->setPerAccountChatLogsDir(LLStringUtil::null,
|
||||||
|
gSavedSettings.getString("FirstName"), gSavedSettings.getString("LastName") );
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
gDirUtilp->setPerAccountChatLogsDir(gHippoGridManager->getCurrentGridNick(),
|
||||||
|
gSavedSettings.getString("FirstName"), gSavedSettings.getString("LastName") );
|
||||||
|
}
|
||||||
LLFile::mkdir(gDirUtilp->getChatLogsDir());
|
LLFile::mkdir(gDirUtilp->getChatLogsDir());
|
||||||
LLFile::mkdir(gDirUtilp->getPerAccountChatLogsDir());
|
LLFile::mkdir(gDirUtilp->getPerAccountChatLogsDir());
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user