Actions
Bug #5446
closedMulti-line Aliases break commands globally
Start date:
11/23/2021
Due date:
% Done:
0%
Estimated time:
Operative System:
All
Regression:
No
Description
Making a multi line alias as per wiki instructions, as follows:
/alias { /cmd1
/sleep 1 /cmd2
/sleep 1 /cmd3
}
Breaks the /sleep command because AdiIRC thinks it's an alias, telling me "1 Unknown Command" in the log.
Updated by Per Amundsen about 3 years ago
There is a different syntax depending on whether you are using Tools -> Edit Aliases or Tools -> Edit Scripts
For Tools -> Edit Aliases the syntax is:
/aliashere { /cmd1 /cmd2 /cmd3 }
For Tools -> Edit Scripts the syntax is:
alias aliashere [ /cmd1 /cmd2 /cmd3 }
Updated by Myles D about 3 years ago
Cheers, it looks like this one works if I don't put a command on the same line after {
I can test the next time I get dc/ed.
Was a bit overzealous with the bug reports. ;)
Updated by Per Amundsen about 3 years ago
- Status changed from New to Invalid
Great,
This used to be allowed as there is really no technical reason why it can't be allowed, but to have maximum compatibility with mirc scripting, it was changed.
Actions