mIRC Home    About    Download    Register    News    Help

Print Thread
Joined: Jan 2004
Posts: 2,127
maroon Offline OP
Hoopy frood
OP Offline
Hoopy frood
Joined: Jan 2004
Posts: 2,127
the last 3 of 4 lines generates error "!ECHO Unknown command" regardless whether these lines are pasted into editbox or run within an alias. The trigger seems to be using .!command within a while() loop or within an if() statement.


Code:
alias foo {
  //echo -s test1 | .!echo this does not generate 'invalid command' error
  //echo -s test2 | if (1) .!echo This generates the error
  //echo -s test3 | if (0) echo -s this does not display | else .!echo This generates the error
  //echo -s test4 | var %n = 1, %t = $ticks | while (%n) { .!echo This generates the error | dec %n } | echo -ati * Bench $calc($ticks - %t) ms.
}

Joined: Dec 2002
Posts: 5,420
Hoopy frood
Offline
Hoopy frood
Joined: Dec 2002
Posts: 5,420
Thanks for your bug report. The reason for this is that the prefixes need to be specified in the order /!.command. The reason it works in the first command is due to how the scripting language was originally designed and cannot be changed without breaking scripts.


Link Copied to Clipboard