@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.
@version=<channel>
@version (sent as the whole text of an instant message from an avatar)
ScriptDialogReply of up to 254 characters, which the user can't easily spoof from the chat bar. Channel 0 is refused (see Caveats).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.
@VERSION=123 also works.atoi gives 0), is refused without a reply. CoolVL refuses channel 0 in every case.@version with no = is not a valid scripted command and fails. The bare form is only recognized inside an IM.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.");
}
}
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.
RRInterface::getVersion() (RRInterface.cpp:817-820) builds the string from RR_VIEWER_NAME ("RestrainedLife", RRInterface.h:31) and RR_VERSION (RRInterfaceVersion.h).reallyHandleCommand (RRInterface.cpp:1749-1832), when the setting RestrainedLoveDoNotQueueVersionRequests is on (the default; settings.xml:126-136), any behavior that starts with version is answered at once, even before login finishes, instead of being queued with the other retained commands. A behavior that starts with "version" but isn't one of the four known names returns failure. With the setting off, version queries are queued like everything else.answerOnChat (RRInterface.cpp:2396-2451) does the channel handling and truncation.queueCommand (mkrlinterface.cpp:2081-2117) always answers commands that start with version (and getcommand) immediately instead of queuing them. There is no setting for this.(<viewer version>); CoolVL doesn't.@list and @stopim IMs (llimmgr.cpp:1795-1830). Marine's doesn't.This command works differently from RLVa's @version; see the comparison.