# /send

Function usage:

SEND(text[, world[, flags]])

Command Usage:

/SEND [-W] [-Ttype] [-w[world]] [-n] text

Sends text to a world. If no world is specified, the current world is used. By default, send does not execute SEND hooks.

In the function form, the optional flags is a string containing letters that modify the function's behavior:

"h"
  test for and invoke matching SEND hooks.
"u"
  send text unterminaed (i.e., without a CR LF end-of-line marker).

For backwards compatibility, the flags "o", "n", and "1" are ignored, and the flags "0" and "f" are equivalent to "u".

Command options:

-wworld
  sends text to world.
-Ttype
  sends text to all connected worlds with a type that matches the pattern type.
-W
  sends text to all connected worlds.
-n
  send text without an end-of-line marker (CR LF).
-h
  test for and invoke matching SEND hooks.

The return value of send is 0 if the text is not successfully sent, nonzero if it is.

See: functions.

Back to index
Back to tf home page

Copyright © 1995, 1996, 1997, 1998, 1999, 2002, 2003, 2004 Ken Keys