thanks riamus2 for you suggestion... i'll change that and see what happens...

i don't get it... i've tried both examples but they don't seem to work.

with example 1 i get bucnhes of errors saying $sockbr unknown command... example 2 my mirc crashes... like the loop never ends or somting....

i appreciate what youve shown.... but do ya have any further suggestions mike.... or anyone?