Open Bug 536584 Opened 10 years ago Updated 10 years ago

Is /text-direction a command or isn't it?


(Other Applications :: ChatZilla, defect)

Not set


(Not tracked)


(Reporter: tonymec, Assigned: rginda)


Mozilla/5.0 (X11; U; Linux i686; en-US; rv: Gecko/20091223 Lightning/1.0b2pre SeaMonkey/2.0.2pre - Build ID: 20091223003609
...with cZ 0.9.86 built-in

In the following, lines starting --> were typed by me (in the "client" tab), those starting with a datestamp were the replies.

--> /help te
[2009-12-23 19:26:49] [USAGE] testdisplay 
[2009-12-23 19:26:49] [HELP] Displays a sample text.  Used to preview styles.
--> /te
[2009-12-23 19:27:02] [ERROR] Ambiguous command, ``te'', 2 commands match [testdisplay, text-direction].
--> /help text-direction
[2009-12-23 19:27:36] [ERROR] The command ``text-direction'' is not known to ChatZilla.
This happens for any command not marked CMD_CONSOLE - i.e. a command not suppsoed to be run from the console. We correctly handle this in /help and tab-completion, but it's trickier when resolving commands.

A non-CMD_CONSOLE commands must still be usable if you type it out directly or dispatch() it, and it would be bad to say "ambiguous command" and only list 1 command, which leaves the only option to be not allowing non-CMD_CONSOLE commands to be shortened - which isn't ideal either.
Workaround: /alias te testdisplay
You need to log in before you can comment on or make changes to this bug.