aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
-rw-r--r--ChangeLog.txt6
-rw-r--r--linden/indra/newview/llpanellogin.cpp1
-rw-r--r--linden/indra/newview/llviewermessage.cpp66
3 files changed, 10 insertions, 63 deletions
diff --git a/ChangeLog.txt b/ChangeLog.txt
index 36cf8c7..b1e3bff 100644
--- a/ChangeLog.txt
+++ b/ChangeLog.txt
@@ -4,6 +4,12 @@
4 4
52009-11-09 McCabe Maxsted <hakushakukun@gmail.com> 52009-11-09 McCabe Maxsted <hakushakukun@gmail.com>
6 6
7 * llpanellogin and llviewermessage now compile.
8
9 modified: linden/indra/newview/llpanellogin.cpp
10 modified: linden/indra/newview/llviewermessage.cpp
11
12
7 * Updated several menu entries to 1.23. 13 * Updated several menu entries to 1.23.
8 14
9 modified: linden/indra/newview/llviewermenu.cpp 15 modified: linden/indra/newview/llviewermenu.cpp
diff --git a/linden/indra/newview/llpanellogin.cpp b/linden/indra/newview/llpanellogin.cpp
index 63f76dc..38d9bc7 100644
--- a/linden/indra/newview/llpanellogin.cpp
+++ b/linden/indra/newview/llpanellogin.cpp
@@ -981,7 +981,6 @@ void LLPanelLogin::onClickConnect(void *)
981 } 981 }
982 } 982 }
983} 983}
984}
985 984
986void LLPanelLogin::onClickGrid(void *) 985void LLPanelLogin::onClickGrid(void *)
987{ 986{
diff --git a/linden/indra/newview/llviewermessage.cpp b/linden/indra/newview/llviewermessage.cpp
index a6fc5ed..94ae3ab 100644
--- a/linden/indra/newview/llviewermessage.cpp
+++ b/linden/indra/newview/llviewermessage.cpp
@@ -1127,21 +1127,6 @@ bool LLOfferInfo::inventory_offer_callback(const LLSD& notification, const LLSD&
1127 switch(button) 1127 switch(button)
1128 { 1128 {
1129 case IOR_ACCEPT: 1129 case IOR_ACCEPT:
1130// [RLVa:KB] - Version: 1.22.11 | Checked: 2009-07-10 (RLVa-1.0.0g) | Added: RLVa-0.2.2a
1131 // Only change the inventory offer's destination folder to the shared root if:
1132 // - the user has enabled the feature
1133 // - the inventory offer came from a script (and specifies a folder)
1134 // - the name starts with the prefix [mDesc format (quotes are part of the string): "[OBJECTNAME] ( http://slurl.com/... )"]
1135 if ( (rlv_handler_t::isEnabled()) && (!RlvSettings::getForbidGiveToRLV()) &&
1136 (IM_TASK_INVENTORY_OFFERED == info->mIM) && (LLAssetType::AT_CATEGORY == info->mType) && (info->mDesc.find(RLV_PUTINV_PREFIX) == 1) )
1137 {
1138 LLViewerInventoryCategory* pRlvRoot = gRlvHandler.getSharedRoot();
1139 if (pRlvRoot)
1140 {
1141 info->mFolderID = pRlvRoot->getUUID();
1142 }
1143 }
1144// [/RLVa:KB]
1145 // ACCEPT. The math for the dialog works, because the accept 1130 // ACCEPT. The math for the dialog works, because the accept
1146 // for inventory_offered, task_inventory_offer or 1131 // for inventory_offered, task_inventory_offer or
1147 // group_notice_inventory is 1 greater than the offer integer value. 1132 // group_notice_inventory is 1 greater than the offer integer value.
@@ -5037,31 +5022,8 @@ void process_script_question(LLMessageSystem *msg, void **user_data)
5037 payload["object_name"] = object_name; 5022 payload["object_name"] = object_name;
5038 payload["owner_name"] = owner_name; 5023 payload["owner_name"] = owner_name;
5039 5024
5040// [RLVa:KB] - Version: 1.22.11 | Checked: 2009-07-10 (RLVa-1.0.0g) | Modified: RLVa-0.2.0e
5041 S32 rlvQuestionsOther = questions;
5042
5043 if ( (rlv_handler_t::isEnabled()) && (gRlvHandler.hasBehaviour(RLV_BHVR_ACCEPTPERMISSION)) )
5044 {
5045 LLViewerObject* pObj = gObjectList.findObject(taskid);
5046 if (pObj)
5047 {
5048 if (pObj->permYouOwner())
5049 {
5050 // PERMISSION_TAKE_CONTROLS and PERMISSION_ATTACH are only auto-granted to objects this avie owns
5051 rlvQuestionsOther &= ~(LSCRIPTRunTimePermissionBits[SCRIPT_PERMISSION_TAKE_CONTROLS] |
5052 LSCRIPTRunTimePermissionBits[SCRIPT_PERMISSION_ATTACH]);
5053 }
5054 }
5055 }
5056
5057 if ( (!caution) && (!rlvQuestionsOther) )
5058 {
5059 script_question_cb(0, cbdata);
5060 }
5061 else if (gSavedSettings.getBOOL("PermissionsCautionEnabled"))
5062// [/RLVa:KB]
5063 // check whether cautions are even enabled or not 5025 // check whether cautions are even enabled or not
5064 //if (gSavedSettings.getBOOL("PermissionsCautionEnabled")) 5026 if (gSavedSettings.getBOOL("PermissionsCautionEnabled"))
5065 { 5027 {
5066 // display the caution permissions prompt 5028 // display the caution permissions prompt
5067 LLNotifications::instance().add(caution ? "ScriptQuestionCaution" : "ScriptQuestion", args, payload); 5029 LLNotifications::instance().add(caution ? "ScriptQuestionCaution" : "ScriptQuestion", args, payload);
@@ -5392,21 +5354,6 @@ bool handle_lure_callback(const LLSD& notification, const LLSD& response)
5392 5354
5393 if(0 == option) 5355 if(0 == option)
5394 { 5356 {
5395// [RLVa:KB] - Version: 1.22.11 | Checked: 2009-07-10 (RLVa-1.0.0g) | Modified: RLVa-0.2.0b
5396 bool fRlvCensorMessage = false;
5397 if (gRlvHandler.hasBehaviour(RLV_BHVR_SENDIM))
5398 {
5399 for (LLDynamicArray<LLUUID>::iterator it = invitees->begin(); it != invitees->end(); ++it)
5400 {
5401 if (!gRlvHandler.isException(RLV_BHVR_SENDIM, *it))
5402 {
5403 fRlvCensorMessage = true;
5404 break;
5405 }
5406 }
5407 }
5408// [/RLVa:KB]
5409
5410 LLMessageSystem* msg = gMessageSystem; 5357 LLMessageSystem* msg = gMessageSystem;
5411 msg->newMessageFast(_PREHASH_StartLure); 5358 msg->newMessageFast(_PREHASH_StartLure);
5412 msg->nextBlockFast(_PREHASH_AgentData); 5359 msg->nextBlockFast(_PREHASH_AgentData);
@@ -5414,10 +5361,7 @@ bool handle_lure_callback(const LLSD& notification, const LLSD& response)
5414 msg->addUUIDFast(_PREHASH_SessionID, gAgent.getSessionID()); 5361 msg->addUUIDFast(_PREHASH_SessionID, gAgent.getSessionID());
5415 msg->nextBlockFast(_PREHASH_Info); 5362 msg->nextBlockFast(_PREHASH_Info);
5416 msg->addU8Fast(_PREHASH_LureType, (U8)0); // sim will fill this in. 5363 msg->addU8Fast(_PREHASH_LureType, (U8)0); // sim will fill this in.
5417// [RLVa:KB] - Version: 1.22.11 | Checked: 2009-07-10 (RLVa-1.0.0g) | Modified: RLVa-0.2.0b 5364 msg->addStringFast(_PREHASH_Message, text);
5418 msg->addStringFast(_PREHASH_Message, (!fRlvCensorMessage) ? text : rlv_handler_t::cstrHidden);
5419// [/RLVa:KB]
5420 //msg->addStringFast(_PREHASH_Message, text);
5421 for(LLSD::array_const_iterator it = notification["payload"]["ids"].beginArray(); 5365 for(LLSD::array_const_iterator it = notification["payload"]["ids"].beginArray();
5422 it != notification["payload"]["ids"].endArray(); 5366 it != notification["payload"]["ids"].endArray();
5423 ++it) 5367 ++it)
@@ -5613,14 +5557,12 @@ void process_script_dialog(LLMessageSystem* msg, void**)
5613 && ((mutes[i].mName == agent_name))) 5557 && ((mutes[i].mName == agent_name)))
5614 ) 5558 )
5615 { 5559 {
5616 delete info;
5617 return; 5560 return;
5618 } 5561 }
5619 } 5562 }
5620 } 5563 }
5621 // or Scriptdialog boxes from muted objects -- Kakurady 5564 // or Scriptdialog boxes from muted objects -- Kakurady
5622 if (LLMuteList::getInstance()->isMuted(info->mObjectID, title)){ 5565 if (LLMuteList::getInstance()->isMuted(object_id, title)){
5623 delete info;
5624 return; 5566 return;
5625 } 5567 }
5626 5568
@@ -5673,7 +5615,7 @@ void process_script_dialog(LLMessageSystem* msg, void**)
5673 if((*itr).second > gSavedSettings.getF32("SpamCount")) 5615 if((*itr).second > gSavedSettings.getF32("SpamCount"))
5674 { 5616 {
5675 blacklisted_names.put(agent_name); 5617 blacklisted_names.put(agent_name);
5676 LL_INFOS("process_script_dialog") << "blocked " << info->mObjectID.asString() << " owned by " << agent_name << LL_ENDL;//" (" << key.asString() << ")" <<LL_ENDL; 5618 LL_INFOS("process_script_dialog") << "blocked " << object_id.asString() << " owned by " << agent_name << LL_ENDL;//" (" << key.asString() << ")" <<LL_ENDL;
5677 return; 5619 return;
5678 } 5620 }
5679 else 5621 else