diff options
Diffstat (limited to 'linden/indra/newview/llviewermessage.cpp')
-rw-r--r-- | linden/indra/newview/llviewermessage.cpp | 17 |
1 files changed, 9 insertions, 8 deletions
diff --git a/linden/indra/newview/llviewermessage.cpp b/linden/indra/newview/llviewermessage.cpp index 2011275..37e851c 100644 --- a/linden/indra/newview/llviewermessage.cpp +++ b/linden/indra/newview/llviewermessage.cpp | |||
@@ -279,11 +279,6 @@ void process_logout_reply(LLMessageSystem* msg, void**) | |||
279 | llinfos << "process_logout_reply item not found: " << item_id << llendl; | 279 | llinfos << "process_logout_reply item not found: " << item_id << llendl; |
280 | } | 280 | } |
281 | } | 281 | } |
282 | if(!parents.empty()) | ||
283 | { | ||
284 | gInventory.accountForUpdate(parents); | ||
285 | gInventory.notifyObservers(); | ||
286 | } | ||
287 | LLAppViewer::instance()->forceQuit(); | 282 | LLAppViewer::instance()->forceQuit(); |
288 | } | 283 | } |
289 | 284 | ||
@@ -1335,7 +1330,7 @@ void process_improved_im(LLMessageSystem *msg, void **user_data) | |||
1335 | S32 binary_bucket_size; | 1330 | S32 binary_bucket_size; |
1336 | LLChat chat; | 1331 | LLChat chat; |
1337 | 1332 | ||
1338 | //*TODO:translate - need to fix the full name to first/last (maybe) | 1333 | // *TODO:translate - need to fix the full name to first/last (maybe) |
1339 | msg->getUUIDFast(_PREHASH_AgentData, _PREHASH_AgentID, from_id); | 1334 | msg->getUUIDFast(_PREHASH_AgentData, _PREHASH_AgentID, from_id); |
1340 | msg->getBOOLFast(_PREHASH_MessageBlock, _PREHASH_FromGroup, from_group); | 1335 | msg->getBOOLFast(_PREHASH_MessageBlock, _PREHASH_FromGroup, from_group); |
1341 | msg->getUUIDFast(_PREHASH_MessageBlock, _PREHASH_ToAgentID, to_id); | 1336 | msg->getUUIDFast(_PREHASH_MessageBlock, _PREHASH_ToAgentID, to_id); |
@@ -1872,6 +1867,8 @@ void process_improved_im(LLMessageSystem *msg, void **user_data) | |||
1872 | 1867 | ||
1873 | case IM_GOTO_URL: | 1868 | case IM_GOTO_URL: |
1874 | { | 1869 | { |
1870 | // n.b. this is for URLs sent by the system, not for | ||
1871 | // URLs sent by scripts (i.e. llLoadURL) | ||
1875 | if (binary_bucket_size <= 0) | 1872 | if (binary_bucket_size <= 0) |
1876 | { | 1873 | { |
1877 | llwarns << "bad binary_bucket_size: " | 1874 | llwarns << "bad binary_bucket_size: " |
@@ -5091,7 +5088,7 @@ void callback_load_url_name(const LLUUID& id, const char* first, const char* las | |||
5091 | owner_name += last; | 5088 | owner_name += last; |
5092 | } | 5089 | } |
5093 | 5090 | ||
5094 | // TODO: Talk to james about using an id instead of a name for this. | 5091 | // For legacy name-only mutes. |
5095 | if (gMuteListp->isMuted(LLUUID::null, owner_name)) | 5092 | if (gMuteListp->isMuted(LLUUID::null, owner_name)) |
5096 | { | 5093 | { |
5097 | delete infop; | 5094 | delete infop; |
@@ -5126,8 +5123,12 @@ void process_load_url(LLMessageSystem* msg, void**) | |||
5126 | // URL is safety checked in load_url above | 5123 | // URL is safety checked in load_url above |
5127 | 5124 | ||
5128 | // Check if object or owner is muted | 5125 | // Check if object or owner is muted |
5129 | if (gMuteListp->isMuted(infop->mObjectID, infop->mObjectName)) | 5126 | if (gMuteListp && |
5127 | (gMuteListp->isMuted(infop->mObjectID, infop->mObjectName) || | ||
5128 | gMuteListp->isMuted(infop->mOwnerID)) | ||
5129 | ) | ||
5130 | { | 5130 | { |
5131 | llinfos<<"Ignoring load_url from muted object/owner."<<llendl; | ||
5131 | delete infop; | 5132 | delete infop; |
5132 | infop = NULL; | 5133 | infop = NULL; |
5133 | return; | 5134 | return; |