you are doing "WHO #chan" for every channel, while this may not be needed. get all chans in a variable, and who them all at once. and may i suggest you use while instead of goto to loop. to slow things down, insert a timer command with increasing delay.