diff options
author | Jacek Antonelli | 2008-08-15 23:44:54 -0500 |
---|---|---|
committer | Jacek Antonelli | 2008-08-15 23:44:54 -0500 |
commit | b2afb8800bb033a04bb3ecdf0363068d56648ef1 (patch) | |
tree | 3568129b5bbddb47cd39d622b4137a8fbff4abaf /linden/indra/newview/llmutelist.cpp | |
parent | Second Life viewer sources 1.14.0.1 (diff) | |
download | meta-impy-b2afb8800bb033a04bb3ecdf0363068d56648ef1.zip meta-impy-b2afb8800bb033a04bb3ecdf0363068d56648ef1.tar.gz meta-impy-b2afb8800bb033a04bb3ecdf0363068d56648ef1.tar.bz2 meta-impy-b2afb8800bb033a04bb3ecdf0363068d56648ef1.tar.xz |
Second Life viewer sources 1.15.0.2
Diffstat (limited to 'linden/indra/newview/llmutelist.cpp')
-rw-r--r-- | linden/indra/newview/llmutelist.cpp | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/linden/indra/newview/llmutelist.cpp b/linden/indra/newview/llmutelist.cpp index e02d6fc..e62bf19 100644 --- a/linden/indra/newview/llmutelist.cpp +++ b/linden/indra/newview/llmutelist.cpp | |||
@@ -5,6 +5,7 @@ | |||
5 | * | 5 | * |
6 | * Copyright (c) 2003-2007, Linden Research, Inc. | 6 | * Copyright (c) 2003-2007, Linden Research, Inc. |
7 | * | 7 | * |
8 | * Second Life Viewer Source Code | ||
8 | * The source code in this file ("Source Code") is provided by Linden Lab | 9 | * The source code in this file ("Source Code") is provided by Linden Lab |
9 | * to you under the terms of the GNU General Public License, version 2.0 | 10 | * to you under the terms of the GNU General Public License, version 2.0 |
10 | * ("GPL"), unless you have obtained a separate licensing agreement | 11 | * ("GPL"), unless you have obtained a separate licensing agreement |
@@ -55,7 +56,7 @@ | |||
55 | 56 | ||
56 | #include "llagent.h" | 57 | #include "llagent.h" |
57 | #include "llfloatermute.h" | 58 | #include "llfloatermute.h" |
58 | #include "llviewermessage.h" // for gGenericDispatcher | 59 | #include "llviewergenericmessage.h" // for gGenericDispatcher |
59 | #include "llviewerwindow.h" | 60 | #include "llviewerwindow.h" |
60 | #include "viewer.h" | 61 | #include "viewer.h" |
61 | #include "llworld.h" //for particle system banning | 62 | #include "llworld.h" //for particle system banning |
@@ -462,7 +463,7 @@ void LLMuteList::requestFromServer(const LLUUID& agent_id) | |||
462 | char agent_id_string[UUID_STR_LENGTH]; /*Flawfinder: ignore*/ | 463 | char agent_id_string[UUID_STR_LENGTH]; /*Flawfinder: ignore*/ |
463 | char filename[LL_MAX_PATH]; /*Flawfinder: ignore*/ | 464 | char filename[LL_MAX_PATH]; /*Flawfinder: ignore*/ |
464 | agent_id.toString(agent_id_string); | 465 | agent_id.toString(agent_id_string); |
465 | snprintf(filename, sizeof(filename), "%s.cached_mute", gDirUtilp->getExpandedFilename(LL_PATH_CACHE,agent_id_string).c_str()); /*Flawfinder: ignore*/ | 466 | snprintf(filename, sizeof(filename), "%s.cached_mute", gDirUtilp->getExpandedFilename(LL_PATH_CACHE,agent_id_string).c_str()); /* Flawfinder: ignore */ |
466 | LLCRC crc; | 467 | LLCRC crc; |
467 | crc.update(filename); | 468 | crc.update(filename); |
468 | 469 | ||
@@ -488,7 +489,7 @@ void LLMuteList::cache(const LLUUID& agent_id) | |||
488 | char agent_id_string[UUID_STR_LENGTH]; /*Flawfinder: ignore*/ | 489 | char agent_id_string[UUID_STR_LENGTH]; /*Flawfinder: ignore*/ |
489 | char filename[LL_MAX_PATH]; /*Flawfinder: ignore*/ | 490 | char filename[LL_MAX_PATH]; /*Flawfinder: ignore*/ |
490 | agent_id.toString(agent_id_string); | 491 | agent_id.toString(agent_id_string); |
491 | snprintf(filename, sizeof(filename), "%s.cached_mute", gDirUtilp->getExpandedFilename(LL_PATH_CACHE,agent_id_string).c_str()); /*Flawfinder: ignore*/ | 492 | snprintf(filename, sizeof(filename), "%s.cached_mute", gDirUtilp->getExpandedFilename(LL_PATH_CACHE,agent_id_string).c_str()); /* Flawfinder: ignore */ |
492 | saveToFile(filename); | 493 | saveToFile(filename); |
493 | } | 494 | } |
494 | } | 495 | } |
@@ -531,7 +532,7 @@ void LLMuteList::processUseCachedMuteList(LLMessageSystem* msg, void**) | |||
531 | char agent_id_string[UUID_STR_LENGTH]; /*Flawfinder: ignore*/ | 532 | char agent_id_string[UUID_STR_LENGTH]; /*Flawfinder: ignore*/ |
532 | gAgent.getID().toString(agent_id_string); | 533 | gAgent.getID().toString(agent_id_string); |
533 | char filename[LL_MAX_PATH]; /*Flawfinder: ignore*/ | 534 | char filename[LL_MAX_PATH]; /*Flawfinder: ignore*/ |
534 | snprintf(filename, sizeof(filename), "%s.cached_mute", gDirUtilp->getExpandedFilename(LL_PATH_CACHE,agent_id_string).c_str()); /*Flawfinder: ignore*/ | 535 | snprintf(filename, sizeof(filename), "%s.cached_mute", gDirUtilp->getExpandedFilename(LL_PATH_CACHE,agent_id_string).c_str()); /* Flawfinder: ignore */ |
535 | gMuteListp->loadFromFile(filename); | 536 | gMuteListp->loadFromFile(filename); |
536 | } | 537 | } |
537 | 538 | ||