To help out whoever fixes this script. Not only does the script now have problems with odinary links people post on irc, but now youtube have now introduced a different format of links which is working similtaneously with the old links now, but will probably take over from the old style. People are posting both formats of links.
Here is an example.
"Lego Claw Machine"
old style link - http://www.youtube.com/watch?v=iPVvH0hFadk
new style link - http://www.youtube.com/user/MlCHAELHlCKOXFilms#p/u/0/iPVvH0hFadk