When an invalid if structure is placed on the same line as an event declaration, the "invalid format" error message will omit the file/line information vital to debugging. This only happens when the if statement is placed on the same line as the declaration.
Steps to reproduce:
1. Place the following code in a remote script:
2. Type //msg $me hi
This will display: "* /if: invalid format" without line information.
3. Change this to:
on *:TEXT:*:?: {
if x x
}
4. Repeat //msg $me hi
This will properly display the file and line number:
* /if: invalid format (line 30, script.mrc)
Also happens with raw events and I assume this is the same for ctcp.