Originally Posted By: Plornt
Amazing, than you very much smile

AAbout the other thing, I havent got any code to hand but I have a 1200 line quote file and I am while looping through them for what a user searches then out putting the line number. On mirc 6.35 It could do it within seconds (from what I recall) however on mirc 7.1 the thing freezes for a whole minute and somtimes even ping timeout.


Instead of using a while loop, use the $read "w" switch and $readn. For example:

Code:
alias findquote {
  noop $read(quotes.txt,nw,* $+ $1- $+ *)
  return $readn
}


$findquote(something) will return the line number of the first line that contains "something" (or 0 if there was no match).

If that isn't robust enough for what you need, /filter would probably be a good place to start.

Either method should be MUCH faster than what you were using!