aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/bin/assets/ScriptsAssetSet/llRemoveFromLandBanList.lsl
diff options
context:
space:
mode:
Diffstat (limited to 'bin/assets/ScriptsAssetSet/llRemoveFromLandBanList.lsl')
-rw-r--r--bin/assets/ScriptsAssetSet/llRemoveFromLandBanList.lsl168
1 files changed, 84 insertions, 84 deletions
diff --git a/bin/assets/ScriptsAssetSet/llRemoveFromLandBanList.lsl b/bin/assets/ScriptsAssetSet/llRemoveFromLandBanList.lsl
index 19ad704..f2df357 100644
--- a/bin/assets/ScriptsAssetSet/llRemoveFromLandBanList.lsl
+++ b/bin/assets/ScriptsAssetSet/llRemoveFromLandBanList.lsl
@@ -1,84 +1,84 @@
1//Commands are: 1//Commands are:
2///5 ban:full_avatar_name 2///5 ban:full_avatar_name
3///5 tempban:full_avatar_name 3///5 tempban:full_avatar_name
4///5 unban:full_avatar_name 4///5 unban:full_avatar_name
5///5 pass:full_avatar_name 5///5 pass:full_avatar_name
6///5 unpass:full_avatar_name 6///5 unpass:full_avatar_name
7///5 clearban 7///5 clearban
8///5 clearpass 8///5 clearpass
9 9
10string command; 10string command;
11 11
12default 12default
13{ 13{
14 state_entry() 14 state_entry()
15 { 15 {
16 llListen(5, "", llGetOwner(), ""); 16 llListen(5, "", llGetOwner(), "");
17 } 17 }
18 18
19 on_rez(integer param) 19 on_rez(integer param)
20 { 20 {
21 llResetScript(); 21 llResetScript();
22 } 22 }
23 23
24 listen(integer chan, string name, key id, string message) 24 listen(integer chan, string name, key id, string message)
25 { 25 {
26 if (command != "") 26 if (command != "")
27 { 27 {
28 llOwnerSay("Sorry, still processing last command, try again in a second."); 28 llOwnerSay("Sorry, still processing last command, try again in a second.");
29 } 29 }
30 30
31 list args = llParseString2List(message,[":"],[]); 31 list args = llParseString2List(message,[":"],[]);
32 command = llToLower(llList2String(args,0)); 32 command = llToLower(llList2String(args,0));
33 33
34 if (command == "clearbans") 34 if (command == "clearbans")
35 { 35 {
36 llResetLandBanList(); 36 llResetLandBanList();
37 } 37 }
38 if (command == "clearpass") 38 if (command == "clearpass")
39 { 39 {
40 llResetLandPassList(); 40 llResetLandPassList();
41 } 41 }
42 else 42 else
43 { 43 {
44 llSensor(llList2String(args,1),NULL_KEY,AGENT,96,PI); 44 llSensor(llList2String(args,1),NULL_KEY,AGENT,96,PI);
45 } 45 }
46 } 46 }
47 47
48 no_sensor() 48 no_sensor()
49 { 49 {
50 command = ""; 50 command = "";
51 } 51 }
52 52
53 sensor(integer num) 53 sensor(integer num)
54 { 54 {
55 integer i; 55 integer i;
56 for (i=0; i< num; ++i) 56 for (i=0; i< num; ++i)
57 { 57 {
58 if (command == "ban") 58 if (command == "ban")
59 { 59 {
60 // Ban indefinetely 60 // Ban indefinetely
61 llAddToLandBanList(llDetectedKey(i),0.0); 61 llAddToLandBanList(llDetectedKey(i),0.0);
62 } 62 }
63 if (command == "tempban") 63 if (command == "tempban")
64 { 64 {
65 // Ban for 1 hour. 65 // Ban for 1 hour.
66 llAddToLandBanList(llDetectedKey(i),1.0); 66 llAddToLandBanList(llDetectedKey(i),1.0);
67 } 67 }
68 if (command == "unban") 68 if (command == "unban")
69 { 69 {
70 llRemoveFromLandBanList(llDetectedKey(i)); 70 llRemoveFromLandBanList(llDetectedKey(i));
71 } 71 }
72 if (command == "pass") 72 if (command == "pass")
73 { 73 {
74 // Add to land pass list for 1 hour 74 // Add to land pass list for 1 hour
75 llAddToLandPassList(llDetectedKey(i),1.0); 75 llAddToLandPassList(llDetectedKey(i),1.0);
76 } 76 }
77 if (command == "unpass") 77 if (command == "unpass")
78 { 78 {
79 llRemoveFromLandPassList(llDetectedKey(i)); 79 llRemoveFromLandPassList(llDetectedKey(i));
80 } 80 }
81 } 81 }
82 command = ""; 82 command = "";
83 } 83 }
84} 84}