bahiense commented on a Page, YouTube URL "Detector" (v.8)  -  Jul 23, 2010

exactly , for some reason ( kind of noob to this still so idk why , actually this one was my firs or second script using sockets :) ) , the $chan doesnt work within the sockclose event , so you need to use the actual name of the channel ( #blabla , if you have only 1 ) or a variable like lucius said :)

 Respond  
Are you sure you want to unfollow this person?
Are you sure you want to delete this?
Click "Unsubscribe" to stop receiving notices pertaining to this post.
Click "Subscribe" to resume notices pertaining to this post.