aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authoronefang2021-09-06 21:40:51 +1000
committeronefang2021-09-06 21:40:51 +1000
commite70e7ccc9264345ee4f9cd76081e9d89cdff6961 (patch)
tree67d018d153253d3197ff85524708b76a31525bd6
parentLess jerky leash following. (diff)
download1ring-e70e7ccc9264345ee4f9cd76081e9d89cdff6961.zip
1ring-e70e7ccc9264345ee4f9cd76081e9d89cdff6961.tar.gz
1ring-e70e7ccc9264345ee4f9cd76081e9d89cdff6961.tar.bz2
1ring-e70e7ccc9264345ee4f9cd76081e9d89cdff6961.tar.xz
Bitch if RLV is not enabled when trying to do RLV stuff.
-rw-r--r--1ring.lsl17
1 files changed, 17 insertions, 0 deletions
diff --git a/1ring.lsl b/1ring.lsl
index c08de7f..a50d28e 100644
--- a/1ring.lsl
+++ b/1ring.lsl
@@ -1042,6 +1042,12 @@ sendRLV(string cmd)
1042} 1042}
1043sendRLV(string cmd, float time) 1043sendRLV(string cmd, float time)
1044{ 1044{
1045 if ((RLVd) && ("" == RLVversion))
1046 {
1047 llSay(0, "RLV not enabled for " + llKey2Name(Owner) + ".");
1048 return;
1049 }
1050
1045 integer c = llGetListLength(llParseString2List(cmd, [","], [])); 1051 integer c = llGetListLength(llParseString2List(cmd, [","], []));
1046 RLVq += [(string)(RLVchannel + RLVl), cmd, (string) c, 0, time, 0, 0]; 1052 RLVq += [(string)(RLVchannel + RLVl), cmd, (string) c, 0, time, 0, 0];
1047 ++RLVl; 1053 ++RLVl;
@@ -1064,6 +1070,13 @@ doRLV(integer f)
1064 string cmd = ""; 1070 string cmd = "";
1065 if (0 != h) 1071 if (0 != h)
1066 return; 1072 return;
1073
1074 if ((RLVd) && ("" == RLVversion))
1075 {
1076 llSay(0, "RLV not enabled for " + llKey2Name(Owner) + ".");
1077 return;
1078 }
1079
1067// TODO - check if this command is available and not blacklisted. 1080// TODO - check if this command is available and not blacklisted.
1068// Though since getcommands seems to miss "clear" and "setrot", even though they work, seems pointless. 1081// Though since getcommands seems to miss "clear" and "setrot", even though they work, seems pointless.
1069 if (0.0 < time) 1082 if (0.0 < time)
@@ -1256,11 +1269,15 @@ string gotRLV(integer chan, integer g, string message)
1256 else 1269 else
1257 { 1270 {
1258 if (v) // Various docs say RLV might take upto 30 seconds to start in the viewer. 1271 if (v) // Various docs say RLV might take upto 30 seconds to start in the viewer.
1272 {
1259 s(Owner, "Your viewer is not RLV-enabled, so some things wont work."); 1273 s(Owner, "Your viewer is not RLV-enabled, so some things wont work.");
1274 RLVd = TRUE;
1275 }
1260 else 1276 else
1261 { 1277 {
1262 d("RLV command " + r + " not responding! Giving up."); 1278 d("RLV command " + r + " not responding! Giving up.");
1263 S("Your viewer is taking too long to start up RLV."); 1279 S("Your viewer is taking too long to start up RLV.");
1280 RLVd = TRUE;
1264 } 1281 }
1265 if (0 != h) llListenRemove(h); 1282 if (0 != h) llListenRemove(h);
1266 RLVq = llListReplaceList(RLVq, [], f, f + qSTRIDE - 1); 1283 RLVq = llListReplaceList(RLVq, [], f, f + qSTRIDE - 1);