That script doesn't work correctly for aliases contained in the aliases.ini:
Found op on line in aliases.ini.
/mode # +ooo $$1 $2 $3
Note how it doesn't show the line number there, and if you try and use a multi-line alias in aliases.ini:
Found testalias on line in aliases.ini.
{
So it suffers from similar problems to $isalias.