on *:text:!yomama:#: { if ($sock(yomama)) .sockclose yomama set %chan $chan set %nick $nick sockopen yomama www.ahajokes.com 80 } on *:SOCKOPEN:yomama: { sockwrite -nt $sockname GET /ym01.html HTTP/1.1 sockwrite -nt $sockname Host: www.ahajokes.com sockwrite -nt $sockname $crlf } on *:SOCKREAD:yomama: { if ($sockerr) { notice %nick Socket Error: $sockname $+ . Error code: $sockerr Please inform an admin in #Phantom of this error message. halt } else { var %sockreader sockread %sockreader if (*

* iswm %sockreader) && (*Yo mama* iswm %sockreader) { set %joke $htmlfree( %sockreader ) notice %nick 13 &&&  4 Yomama:  6 %joke  13 &&& sockclose yomama } } } alias -l htmlfree { var %x, %i = $regsub($1-,/(^[^<]*>|<[^>]*>|<[^>]*$)/g,$null,%x), %x = $remove(%x, ) return %x }