To make it one channel only, you could could add the following to it. if {[string tolower "#channel"] != [string tolower $chan]} { return } As for reading only 6 lines, I don't see why. The code sugests that it shoudl read till the end, but you claim it only reads 6 lines. You could paste ...