add a line after
on *:text:*youtube.com/watch?v=*:#: { set %tubechan $chan
then msg %tubechan etc etc
btw thanks for the update, it works a treat.