I have this script and I was wondering if someone could help me, because from one moment to the other I leave to function the command and not know why.

Any help is appreciated!

Regards,
-Khonor



on *:TEXT:!uptime:#:{
set -u10 %target $iif($2,$2,$mid(#,2-))
set -u10 %channel #
uptime
}

alias uptime {
sockclose uptime
sockopen uptime nightdev.com 80
}

on *:sockopen:uptime:{
if ($sockerr) { sockclose $sockname | halt }
sockwrite -n $sockname GET /hosted/uptime.php?channel= $+ %target HTTP/1.1
sockwrite -n $sockname Host: www.nightdev.com
sockwrite -n $sockname $crlf
}

on *:sockread:uptime:{
if ($sockerr) { sockclose $sockname }
var %data
sockread %data
tokenize 32 %data
if ($1 isnum) && ($2) { msg %channel %target has been streaming for $1- $+ . Since $date(dd) $date(mmm) $date(yyyy) at $asctime(hh:nn:ss) $+ . }
elseif (%data == The channel is not live.) msg %channel %target is currently not online.
}