diff options
author | onefang | 2021-09-06 21:41:57 +1000 |
---|---|---|
committer | onefang | 2021-09-06 21:41:57 +1000 |
commit | 5605ec73fb4793578118a1189521a5c79deae0db (patch) | |
tree | 838ba467199ff1100c73a8a5df20135a055bfa58 | |
parent | Complain about lack of #RLV folder instead of crashing. (diff) | |
download | 1ring-5605ec73fb4793578118a1189521a5c79deae0db.zip 1ring-5605ec73fb4793578118a1189521a5c79deae0db.tar.gz 1ring-5605ec73fb4793578118a1189521a5c79deae0db.tar.bz2 1ring-5605ec73fb4793578118a1189521a5c79deae0db.tar.xz |
Make the emoter work.
Diffstat (limited to '')
-rw-r--r-- | 1ring.lsl | 18 |
1 files changed, 7 insertions, 11 deletions
@@ -1484,26 +1484,22 @@ d("HEY leashy! " + URL); | |||
1484 | } | 1484 | } |
1485 | } | 1485 | } |
1486 | 1486 | ||
1487 | list result = nextWord(" ", message, ""); | ||
1488 | if (channel == meChannel) | 1487 | if (channel == meChannel) |
1489 | { | 1488 | { |
1490 | list names = nextWord(" ", llKey2Name(llGetOwner()), ""); | 1489 | string n = llKey2Name(Owner); |
1490 | integer i = llSubStringIndex(n, " "); | ||
1491 | 1491 | ||
1492 | if (llGetSubString(message, 0, 0) == "'") | ||
1493 | { | ||
1494 | list suffix = nextWord(" ", message, ""); | ||
1495 | names = ["", llList2String(names, 1) + llList2String(suffix, 1)]; | ||
1496 | message = llList2String(suffix, 0); | ||
1497 | } | ||
1498 | // Rename ourselves to the first word of owners name. | 1492 | // Rename ourselves to the first word of owners name. |
1499 | llSetObjectName(llList2String(names, 1)); | 1493 | llSetObjectName(llGetSubString(n, 0, i - 1)); |
1500 | llSay(0, "/me " + message); | 1494 | llSay(0, "/me " + message); |
1501 | } | 1495 | } |
1502 | else if (channel == bareChannel) | 1496 | else if (channel == bareChannel) |
1503 | { | 1497 | { |
1498 | integer i = llSubStringIndex(message, " "); | ||
1499 | |||
1504 | // Rename ourselves to the first word. | 1500 | // Rename ourselves to the first word. |
1505 | llSetObjectName(llList2String(result, 1)); | 1501 | llSetObjectName(llGetSubString(message, 0, i - 1)); |
1506 | llSay(0, "/me " + llList2String(result, 0)); | 1502 | llSay(0, llGetSubString(message, i + 1, -1)); |
1507 | } | 1503 | } |
1508 | // Change our name back | 1504 | // Change our name back |
1509 | llSetObjectName(OurName); | 1505 | llSetObjectName(OurName); |