Snippets Project Page
Author: entropy
Added: 5y
Updated: 5y
mIRC: 7.52+
Hits: 1,487
Downloads: 14
Review: entropy
Size: 1.01KB
1 0
Login to vote.
mIRC.com Version Check
v1.0
This snippet checks the mirc site for the latest version.
Syntax: !mirc
Download
JSON
▲ Review
▼ Source
; mIRC.com Version Check v1.0 - Check for newest version - by entropy 2017 ; You can wait for the hourly timer to check for the new version, or type: /mirc on *:start:{ .timermirc -o 0 3600 mirc } alias mirc { sockclose mirc sockopen -e mirc mirc.com 443 } on *:sockopen:mirc:{ if ($sockerr) { return } var %a = sockwrite -n $sockname %a GET https://www.mirc.com/news.html HTTP/1.1 %a Host: www.mirc.com %a $crlf } on *:sockread:mirc:{ if ($sockerr) { return } var %a sockread -f %a tokenize 32 %a if (*<h2 class="topic">mIRC * has been released! <span class="date">(*)</span></h2>* iswm $1-) { var %ver = $gettok($nohtml($1-),2,32) if (!%mirc || %ver != $gettok(%mirc,2,32)) { %mirc = $nohtml($1-) | echo $color(info) -tag [mIRC] $chr(9679) $nohtml($1-) } sockclose $sockname } } alias -l nohtml { return $regsubex($1, /<[^>]+(?:>|$)|^[^<>]+>/g,) }
Changelog:
0
0
Review: entropy
Works well in mIRC v7.52.
It's pretty easy and does a good job reporting the newest mIRC version.
Works well in mIRC v7.52.
It's pretty easy and does a good job reporting the newest mIRC version.