This code is a bit safer and always responds
on *:TEXT:*:#:{
if (%flood [ $+ [ $nick ] ]) { return }
set -eu3 %flood [ $+ [ $nick ] ] $true
if ($1 == !youtube) && ($2 != $null) { msg $chan 3Your Youtube Search: $$2- $+ : http://www.youtube.com/results?search_query= $+ $$2- $+ &search_type=&aq=f
else { notice $nick http://youtube.com | return }
}
if ($1 == !google) && ($2 != $null) { msg $chan 3your google search: $+(http://www.google.com/search?q=,$replace($$2-,$chr(32),+))
else { notice $nick http://google.com | return }
}
}