corrade-lsl-templates – Diff between revs 29 and 43

Subversion Repositories:
Rev:
Show entire fileIgnore whitespace
Rev 29 Rev 43
Line 577... Line 577...
577 dataserver(key id, string data) { 577 dataserver(key id, string data) {
578 if(data != "1") llResetScript(); 578 if(data != "1") llResetScript();
579 } 579 }
580 listen(integer channel, string name, key id, string message) { 580 listen(integer channel, string name, key id, string message) {
581 llListenRemove(listenHandle); 581 llListenRemove(listenHandle);
-   582 // Assume local chat channel.
-   583 channel = 0;
-   584 if(llGetSubString(message, 0, 0) == "/") {
-   585 integer i = 1;
-   586 string num = "";
-   587 do {
-   588 string t = llGetSubString(message, i, i);
-   589 if(llGetListLength(
-   590 llParseString2List(
-   591 t,
-   592 ["0", "1", "2", "3", "4", "5", "6", "7", "8", "9"]
-   593 ,
-   594 []
-   595 )) != 0) {
-   596 jump got_channel;
-   597 }
-   598 num += t;
-   599 } while(++i < llStringLength(message));
-   600 @got_channel;
-   601 channel = (integer) num;
-   602 message = llGetSubString(message, i, -1);
-   603 }
582 llInstantMessage( 604 llInstantMessage(
583 wasKeyValueGet( 605 wasKeyValueGet(
584 "corrade", 606 "corrade",
585 configuration 607 configuration
586 ), 608 ),
Line 597... Line 619...
597 wasKeyValueGet( 619 wasKeyValueGet(
598 "password", 620 "password",
599 configuration 621 configuration
600 ) 622 )
601 ), 623 ),
-   624 "channel", channel,
602 "entity", entity, 625 "entity", entity,
603 "type", "normal", 626 "type", "normal",
604 "target", wasURLEscape( 627 "target", wasURLEscape(
605 llList2String(UUIDs, select) 628 llList2String(UUIDs, select)
606 ), 629 ),