@clear releases restrictions held by the object that sends it. Without a filter it removes everything that object has set. With a filter it removes only the commands whose text (behaviour or behaviour:option, as stored) contains the filter as a substring. Restrictions set by other objects are never touched.
@clear isn't in the behavior dictionary. RLVa's parser treats it as its own command type (RLV_TYPE_CLEAR).
@clear
@clear=<filter>
detach, sendim_sec, recvim:<uuid>, …). Every one containing filter is removed by issuing <command>=y on the object's behalf.@clear=tp removes tplure, tploc, accepttp, sittp and so on. The whole chat message is lowercased before parsing.=. In @clear:foo=bar the option foo is ignored and bar is the filter. @clear:foo with no = isn't recognized as clear at all.llOwnerSay("@clear"); // release everything this object set
llOwnerSay("@clear=detach"); // only the detach-related restrictions
llOwnerSay("@clear,detachme=force");
RlvCommand::RlvCommand() picks RLV_TYPE_CLEAR whenever the behavior is clear and the parameter isn't n/add/y/rem (rlvhelper.cpp:721-751). parseCommand() accepts clear without = (rlvhelper.cpp:760-786).RlvHandler::processClearCommand() (rlvhandler.cpp:621-648) iterates the object's commands and calls processCommand(obj, cmd + "=y") for each match. The string form comes from RlvCommand::asString() (rlvhelper.h:728-734).No significant differences from RLV's @clear.