on $*:TEXT:/^~(ytube|ggle)\b/iS:*:{
if ($regml(1) == ytube) {
msg $nick The videos you searched for can be found here: $&
$+(http://www.youtube.com/results?search_query=,$replace($strip($$2-),$chr(32),+),&aq=f)
}
else {
msg $nick The query you searched for can be found here: $&
$+(http://www.google.com/search?hl=en&source=hp&biw=1024&bih=475&q=,$&
$replace($strip($$2-),$chr(32),+),+&aq=f&aqi=g-s10&aql=&oq=&gs_rfai=)
}
}