1!	 $Id: commands,v 1.4 2002-02-21 17:16:31 f Exp $
2!
3! Copyright (c) 1990-2001  Michael Sandrof, Troy Rollo, Matthew Green,
4! and other ircII contributors.
5!
6! All rights reserved.  See the HELP SCROLLZ COPYRIGHT file for more
7! information.
8!
9All ScrollZ commands typed on the command line must begin with one
10of the CMDCHAR settings (see SET CMDCHARS).  By default, this
11is set to /.  Thus, any input line whose first character is a
12/ is treated as an ScrollZ command. For example:
13
14/MSG BigCheese Howdy!
15
16This executes the MSG command, which sends a private message to
17"BigCheese", and that message is "Howdy!"
18
19You can create aliases for commands or redefine what an existing
20command does.  This is done with the ALIAS command.  For example:
21
22/ALIAS M /MSG
23
24NOTE: Command within aliases and other functions do not need the
25      CMDCHAR, and thus the above alias could be written as
26      /ALIAS M MSG    as well.
27      The exception to this, is the // convention mentioned below.
28
29This example creates a new command, M, which does the same thing
30as MSG, you can now do:
31
32/M BigCheese Howdy!
33
34and it will work exactly like MSG.  Suppose however you did this:
35
36/ALIAS MSG //MSG BigCheese
37
38Now, the MSG command will only send messages to BigCheese:
39
40/MSG Howdy!
41
42Note that in the alias, there are two / in front of MSG.  Putting
43two of the CMDCHAR in front of a command tells ScrollZ that you
44want to use the original command, and not any alias of it.
45Therefore, even if you had the above alias for MSG, you could
46still do the following:
47
48//MSG Cheese I can still use the original MSG command.
49
50Furthermore, if you wish you can turn off your display
51(See SET DISPLAY) for the duration of a command.  This is
52done by putting a ^ character between the / and the command
53word.  For example, if you do:
54
55/^MSG BigCheese Hello
56
57You will not see any visible effect to this command (unless the
58nickname BigCheese does not currently exist).
59
60Lastly, if you do the following:
61
62/ /this is a test
63
64Note there is a space after the /.  This form forces the following
65text to be sent to your current channel no matter what.  You can
66thus send lines that begin with your CMDCHAR.  It can also
67be used to force a message to your current channel when you are
68using QUERY.
69