Pasting Feature (#1055)(an instance of Generic Feature Object made by Dred)     This feature is useful when you have good local editing in your client program. It provides an easy interface for pasting in text for the room you are in, or just a single player, to see. Go to location of this object, Features Feature Object. HELP MANUAL:      There are only 3 commands on this feature, all fairly simple to use. VERB SOURCE CODE: |*: "Usage: | @paste:
"Usage: @paste [message]";
"";
"If you provide a message on the same line as the verb, it will be printed to the
room you are currently in exactly like the | verb. However, if you don't put in a
message, you will be prompted to enter in the lines you wish to paste. This is useful
when you have more than one line that you want to paste.";
if (argstr)
player.location:announce_all(player.name, " | ", argstr);
elseif ((msg = $command_utils:read_lines()) && (msg != ERR))
player.location:announce_all($string_utils:center(tostr(" Paste from ", player.name,
" "), wid = abs($player.linelen) - 1, "-"));
for line in (msg)
player.location:announce_all(line);
endfor
player.location:announce_all($string_utils:center(" End of Paste ", wid, "-"));
else
player:tell(">> Paste failed. <<");
endif
.
@paste-to: "Usage: @paste-to send_paste:
if (caller != this)
return E_PERM;
endif
who = args[1];
msg = args[2];
val = who:receive_page(@(typeof(msg) == LIST) ? msg | {msg});
player:tell("Paste sent to ", who.name, " and was ", (!val) ? "refused" | ((val ==
1) ? "received" | "received but fell on sleeping ears."), ".");
.
PROPERTY DATA: |