Echo

From Scriptwiki
Revision as of 13:27, 13 September 2005 by Doomie (talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

Prints text in the specified window using the specified color.

/echo [color] [-cdeghiNtsaqlbfnmr] [color name] [#channel|[=]nick] <text>
SwitchMeaning
sIf a channel/nickname isn't specified, it echoes to the status window.
dIf a channel/nickname isn't specified, it echoes to the single message window.
aIf a channel/nickname isn't specified, it echoes to the active window.
eEncloses the line in the line spearators.
iNIndents the wrapped line by N characters.
hForces lines to hard-wrap so resizing the window doesn't change the line.
tPrefixes the line with a timestamp if global time stamping is on or timestamping is on for that window.
qMakes it not display the text if called from an alias using the . prefix.
lMakes it apply the highlight settings to the line that's displayed.
bfMake it apply the beep/flash settings in the window it is echoing to.
nPrevents the echo from hiliting the window switchbar icon.
mIndicates that the line should be treated as a user message, not an event.
gPrevents the line from being logged to the log file.
rApplies the strip settings in the messages dialog.
cUses the specified color name from the colors dialog.

Note that this text is only displayed in your own window and isn't sent to the server.

Example

/echo -a moo

This will print moo to the active window.

/echo -sb moo

This will print moo to the status window and applies the beep setting in the window.

/echo 0,1 -g #help.script moo

This will print moo to the #help.script channel window in white on black background with preventing it from logging to the log file.

See Also

Take a look on Custom Windows to see how to print text to it.