corrade-lsl-templates – Diff between revs 11 and 15

Subversion Repositories:
Rev:
Show entire fileRegard whitespace
Rev 11 Rev 15
Line 232... Line 232...
232 "message", 232 "message",
233 message 233 message
234 ) 234 )
235 ); 235 );
Line -... Line 236...
-   236
236 237 // Check if this is an eggdrop command.
237 if(llGetSubString(data, 0, 0) != 238 if(llGetSubString(data, 0, 0) !=
238 wasKeyValueGet("command", configuration)) 239 wasKeyValueGet("command", configuration))
Line 239... Line 240...
239 return; 240 return;
240 241
241 list command = llParseString2List(data, 242 // Check if the command matches the current module.
-   243 list command = llParseString2List(data, [" "], []);
242 [wasKeyValueGet("command", configuration), " "], []); 244 if(llList2String(command, 0) !=
Line -... Line 245...
-   245 wasKeyValueGet("command", configuration) + "help")
-   246 return;
-   247
243 if(llList2String(command, 0) != "help") 248 // Remove command.
244 return; 249 command = llDeleteSubList(command, 0, 0);
245 250
246 if(llGetInventoryType(wasKeyValueGet("help card", configuration)) 251 if(llGetInventoryType(wasKeyValueGet("help card", configuration))
247 != INVENTORY_NOTECARD) { 252 != INVENTORY_NOTECARD) {
Line 248... Line 253...
248 data = "Hmm. I have not notecard to hand out - contact my owner please?"; 253 data = "Hmm. I have not notecard to hand out - contact my owner please?";
249 return; 254 state tell;
250 } 255 }