-
Notifications
You must be signed in to change notification settings - Fork 105
Open
Feature
Copy link
Milestone
Description
Attempting to generate hypertext in local chat that, when clicked, would trigger the script to output more text to local chat. There's a viewer URI incantation that seems ideal for it: secondlife://app/chat//<trigger_text> where the script listens on and responds when it sees <trigger_text>. Unfortunately in the Linden viewer (and Catznip), this results in "[Second Life: A SLurl was received from an untrusted browser and has been blocked for your security.]" after which it won't try again until a relog.
Test Plan
Setup:
- Add the following script to an object.
default
{
state_entry()
{
llListen(1,"",NULL_KEY,"");
}
listen(integer channel, string name, key id, string message)
{
llSay(0, "channel" + (string)channel + " got chat: "+llList2CSV([channel,name,id,message]));
}
}
Test for non-zero channels:
- Chat the following line in local chat
secondlife://app//chat/1/testing - Click that link in chat.
- Verify the scripted object reports that it got the chat.
e.g. channel1 got chat: 1, testerd1 Tester, 3e2d81a3-6263-6ffe-ad5c-8ce04bee07e9, test
Test for zero channel (local chat);
- Chat the following line in local chat
secondlife://app//chat/0/testing - Click that link in chat.
- Verify that "testing" is not chatted in local chat.
- Verify you see a message "The SLurl you clicked on is not supported." as a notification and in the chat history.
- Right-click the "secondlife://app//chat/0/testing" link and choose Run This Command.
- Verify you see a message "The SLurl you clicked on is not supported." as a notification and in the chat history.
This repo is using Opire - what does it mean? 👇
💵 Everyone can add rewards for this issue commenting
/reward 100 (replace 100 with the amount).🕵️♂️ If someone starts working on this issue to earn the rewards, they can comment
/try to let everyone know!🙌 And when they open the PR, they can comment
/claim #5012 either in the PR description or in a PR's comment.🪙 Also, everyone can tip any user commenting
/tip 20 @canny[bot] (replace 20 with the amount, and @canny[bot] with the user to tip).📖 If you want to learn more, check out our documentation.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels