Check for updates...

By QuickStep on Oct 18, 2004

I think it is done before multiple times before but for the heck of it...

;Remove if you dont want to check everytime mirc starts
on *:Start:Checkupdate
alias checkupdate {
  .timertimeout 1 15 scripttimeout
  .sockclose mircupdate
  %mircuptodate = false
  sockopen mircupdate mirc.com 80
}
on *:sockopen:mircupdate:{
  sockwrite -n mircupdate GET /get.html HTTP/1.0 $+ $crlf $+ $crlf
}
on *:sockread:mircupdate:{
  if ($sockerr > 0) return
  var %temp
  sockread %temp
  if ($version isin %temp) %mircuptodate = true
}
on *:sockclose:mircupdate:{
  .timertimeout off  
  if (%mircuptodate = true) echo 3 -a Your mIRC is up to date!
  else .timer -m 1 1 mircnotuptodate
}
alias -l scripttimeout {
  .sockclose mircupdate
  if ($?!="Update timed out!!! Check the site for updates?") run http://www.mirc.com/get.html
}
alias -l mircnotuptodate {
  if ($?!="Your mIRC is [NOT] up to date!!! Update now?") run http://www.mirc.com/get.html
}

Comments

Sign in to comment.
splatted   -  Mar 11, 2005

nice - pity mirc doesn\'t have this feature already built into it.

 Respond  
Are you sure you want to unfollow this person?
Are you sure you want to delete this?
Click "Unsubscribe" to stop receiving notices pertaining to this post.
Click "Subscribe" to resume notices pertaining to this post.