on *:INPUT:#:{
if ($1 == !ssstats) {
sockclose swiftirc
sockopen swiftirc www.swiftirc.net 80
halt
}
}
on *:SOCKOPEN:swiftirc:{
sockread -n GET /index.php?page=stats
sockread -n host: www.swiftirc.net
sockread -n $crlf
}
on *:SOCKREAD:swiftirc:{
if ($sockerr) {
echo -a $sock($sockname)
halt
}
var %Statistics
sockread %statistics
if (There are * registered accounts iswm %statistics) {
tokenize 32 %statistics
echo -a 6There are currently4 $3 6registered accounts on the SwiftIRC website.
}
}