mIRC Home    About    Download    Register    News    Help

Print Thread
#208983 02/02/09 09:38 AM
Joined: Dec 2007
Posts: 48
K
Kol Offline OP
Ameglian cow
OP Offline
Ameglian cow
K
Joined: Dec 2007
Posts: 48
Was writing this script yesterday and it was quite messy so I stuck some $&'s in there. Then I didn't want one portion to be part of the line so I commented it out putting a ; in front of it. This stopped the whole thing from working.

Here's a simplified example: (put on mIRC 6.35 (not a clean installation though; but I don't think that would matter for this kind of bug))

Code:
alias test {
  echo -a abc $&
    ; def $&
    ghi
}


Which returns "GHI Unknown command" (assuming you're connected). It doesn't even echo "abc". Another interesting thing I found is that the script editor indents the line after the comment (even when it shouldn't be processed.) Removing the $& in the commented line doesn't help either.

Just thought I'd point it out smile

Last edited by Kol; 02/02/09 09:39 AM.
Kol #208985 02/02/09 01:17 PM
Joined: Jul 2006
Posts: 4,145
W
Hoopy frood
Offline
Hoopy frood
W
Joined: Jul 2006
Posts: 4,145
https://forums.mirc.com/ubbthreads.php?ubb=showflat&Board=8&Number=189921&Searchpage=1&Main=35259&Words=\%24%26amp%3B+%3B+comment&topic=0&Search=true#Post189921

I think mIRC should gave priority to commented lines :
Code:
alias test {
echo -a this is a long, $&
;comment here
/*
another comment
*/
a very long line.
}


#mircscripting @ irc.swiftirc.net == the best mIRC help channel

Link Copied to Clipboard