diff options
Diffstat (limited to '')
-rw-r--r-- | 1ring.lsl | 17 |
1 files changed, 17 insertions, 0 deletions
@@ -1042,6 +1042,12 @@ sendRLV(string cmd) | |||
1042 | } | 1042 | } |
1043 | sendRLV(string cmd, float time) | 1043 | sendRLV(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); |