Project

General

Profile

Actions

Bug #5446

closed

Multi-line Aliases break commands globally

Added by Myles D over 2 years ago. Updated over 2 years ago.

Status:
Invalid
Priority:
Normal
Assignee:
Category:
Scripting
Target version:
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.

Actions #1

Updated by Per Amundsen over 2 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
}
Actions #2

Updated by Myles D over 2 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. ;)

Actions #3

Updated by Per Amundsen over 2 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

Also available in: Atom PDF