mIRC is the strangest thing. Lately, I've had problems with timers, and I still do, but this is strange.

I'm trying to script a little alias that counts aliases.

I'm executeing this little selfwritten alias with this:

//echo -s > $count.alias($script(1))

Is this making any problems? First, what is the problem? Well, if I run this alias (count.alias), it will execute aliases and scripts!

In the 50th line in my first remote file, is this line;

; v0.021 Added dialog cel, instead of halting the whole script by using $?

What does my alias do? It RUNS the "$?", asking for something. It's commented out in the remote file, but it still runs.

This is the count.alias I use.

Code:
alias count.alias {
  var -s %1 $1
  var -s %x $lines($1)

  var %a 0

  :loop
  inc %a
  if (%a < = %x) {
    var -s %b $read( [ %1 ] , [ %a ] )
    if ($chr(44) isin %b) { goto loop }
    var -s %c $gettok( [ %b ] ,1,32)
    if (%c == alias) { echo -s alias funnet, og som første ord! >> %b << | halt } | else { goto loop }

  } | else { goto loop }
  echo -s loop ferdig
}


I just want to read, not execute.

Is it becuase I use []'s? Any suggestions? smile