alias unsetgoogle { unset %result } on *:TEXT:!google *:#: { set %target msg $chan /msg $chan Searching Google.... set %search $2 sockopen google www.google.com 80 } on *:sockopen:google:{ sockwrite -t $sockname GET /search?hl=en&q= $+ %search $+ &meta= HTTP/1.0 $+ $crlf sockwrite -t $sockname Host: www.google.com $+ $crlf sockwrite -t $sockname $crlf } on *:sockread:google:{ var %read sockread %sockread %target %read } }