also, it may be a bit faster and more efficient to convert that loop to a while loop, its much faster, cleaner and more efficient, sometimes those webpages code gets crazy and in rare situations you might notice (especially with $regex() in there) that your mirc is slowing down or possibly locking up at times...