corrade-lsl-templates – Diff between revs 10 and 11
?pathlinks?
Rev 10 | Rev 11 | |||
---|---|---|---|---|
Line 218... | Line 218... | |||
218 | "message", |
218 | "message", |
|
219 | message |
219 | message |
|
220 | ) |
220 | ) |
|
221 | ); |
221 | ); |
|
Line -... | Line 222... | |||
- | 222 | |
||
222 | |
223 | // Check if this is an eggdrop command. |
|
223 | if(llGetSubString(data, 0, 0) != |
224 | if(llGetSubString(data, 0, 0) != |
|
224 | wasKeyValueGet("command", configuration)) |
225 | wasKeyValueGet("command", configuration)) |
|
225 | return; |
226 | return; |
|
- | 227 | |
||
226 | |
228 | // Check if the command matches the current module. |
|
227 | list command = llParseString2List(data, |
229 | list command = llParseString2List(data, |
|
228 | [wasKeyValueGet("command", configuration), " "], []); |
230 | [wasKeyValueGet("command", configuration), " "], ["@"]); |
|
229 | if(llList2String(command, 0) != "spank") |
231 | if(llList2String(command, 0) != "spank") |
|
Line 230... | Line 232... | |||
230 | return; |
232 | return; |
|
231 | |
233 | |
|
Line 301... | Line 303... | |||
301 | ), |
303 | ), |
|
302 | "sift", wasURLEscape( |
304 | "sift", wasURLEscape( |
|
303 | wasListToCSV( |
305 | wasListToCSV( |
|
304 | [ |
306 | [ |
|
305 | "match", |
307 | "match", |
|
306 | wasURLEscape("(?i),?([^,$]*" + data +"[^,$]*),?") |
308 | wasURLEscape("(?i),?\"([^\",$]*" + data + "[^\",$]*)\",?") |
|
307 | ] |
309 | ] |
|
308 | ) |
310 | ) |
|
309 | ), |
311 | ), |
|
310 | "callback", wasURLEscape(URL) |
312 | "callback", wasURLEscape(URL) |
|
311 | ] |
313 | ] |
|
Line 326... | Line 328... | |||
326 | ); |
328 | ); |
|
327 | state listen_group; |
329 | state listen_group; |
|
328 | } |
330 | } |
|
Line 329... | Line 331... | |||
329 | |
331 | |
|
330 | // Dump the members to a list. |
- | ||
331 | data = llList2CSV( |
332 | // Dump the members to a list. |
|
332 | wasCSVToList( |
333 | list spankees = wasCSVToList( |
|
333 | wasURLUnescape( |
334 | wasURLUnescape( |
|
334 | wasKeyValueGet("data", body) |
- | ||
335 | ) |
335 | wasKeyValueGet("data", body) |
|
336 | ) |
336 | ) |
|
Line -... | Line 337... | |||
- | 337 | ); |
||
- | 338 | |
||
- | 339 | // Limit to two people to spank. |
||
- | 340 | if(llGetListLength(spankees) > 2) { |
||
- | 341 | data = "So many people, so few hands!"; |
||
- | 342 | return; |
||
- | 343 | } |
||
- | 344 | |
||
337 | ); |
345 | data = llList2CSV(spankees); |
|
338 | |
346 | |
|
339 | if(data == "") { |
347 | if(data == "") { |
|
340 | data = "I could not find anyone to spank (story of my life)."; |
348 | data = "I could not find anyone to spank (story of my life)."; |
|
Line 341... | Line -... | |||
341 | state tell; |
- | ||
342 | } |
- | ||
343 | |
349 | state tell; |
|
Line 344... | Line 350... | |||
344 | llOwnerSay("Spanking: " + data); |
350 | } |
|
345 | |
351 | |
|
346 | data = "/me spanks " + data; |
352 | data = "/me spanks " + data; |