@version=<channel> makes the viewer say its RLV version string on the given chat channel. It is the oldest way to detect an RLV viewer. The string still says "RestrainedLife", the product's name before 2010, and is kept only for old scripts. New scripts should use @versionnew, or @versionnum if they only need the number.

Syntax

@version=<channel>
@version            (sent as the whole text of an instant message from an avatar)

Parameters

channel
The chat channel to reply on, as an integer. Positive channels get a normal chat reply of up to 1023 characters. Negative channels get a ScriptDialogReply of up to 254 characters, which the user can't easily spoof from the chat bar. Channel 0 is refused (see Caveats).

Return value

Marine's viewer replies RestrainedLife viewer v2.09.35.00 (<viewer version>), where the part in brackets is the host viewer's short version number. CoolVL replies RestrainedLife viewer v2.09.29.30, with no viewer version in brackets.

Caveats

Examples

integer gChan = -1812221819;
default
{
    state_entry()
    {
        llListen(gChan, "", llGetOwner(), "");
        llOwnerSay("@version=" + (string)gChan);
        llSetTimerEvent(60.0);
    }
    listen(integer chan, string name, key id, string msg)
    {
        llSetTimerEvent(0.0);
        llOwnerSay("RLV detected: " + msg);
    }
    timer()
    {
        llSetTimerEvent(0.0);
        llOwnerSay("No RLV viewer detected.");
    }
}

Notes

Manual check by IM: if another avatar sends exactly @version as an IM, the viewer IMs the version string back to them as a do-not-disturb auto-response. The request isn't shown to the user. Muted senders get no reply. The spec warns that IM typing auto-replies in some viewers can reveal that the IM window opened.

The spec also documents a long-removed llGetAgentLanguage trick (RLV 1.16 only). Neither client implements it.

Implementation notes

Client differences

See also

Comparison with RLVa

This command works differently from RLVa's @version; see the comparison.