You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -197,7 +200,7 @@ on *:dialog:sbClient_options:sclick:56: {
197
200
did-r sbClient_options 51
198
201
didtok sbClient_options 5144%sbClient.channels
199
202
}
200
-
on *:dialog:sbClient_options:sclick:91:url-anhttp://www.dukelupus.com
203
+
on *:dialog:sbClient_options:sclick:91:url-an%sbClient.WebSite
201
204
on *:dialog:sbClient_options:sclick:76:sbClient.update
202
205
on *:dialog:sbClient_options:sclick:96:set%sbClient.groupfind$did(96).state
203
206
on *:dialog:sbClient_options:sclick:110:set%sbClient.versionresponse$did(110).state
@@ -268,7 +271,7 @@ ctcp *:TRIGGER:?: {
268
271
}
269
272
ctcp *:VERSION:?: {
270
273
if (!%sbClient.versionresponse) return
271
-
if ($network!= DejaToons) .ctcpreply$nick VERSION 1,9<<sbClient>> version $sbClient.version by DukeLupus.1,15 Get it from 12,15http://www.dukelupus.com (Modified by Ook)
274
+
if ($network!= DejaToons) .ctcpreply$nick VERSION 1,9<<sbClient>> version $sbClient.version by DukeLupus.1,15 Get it from 12,15 $+%sbClient.WebSite (Modified by Ook)
272
275
}
273
276
dialogsbClient_search {
274
277
title"sbClient search dialog"
@@ -709,6 +712,8 @@ alias -l sbClient.CheckVars {
709
712
if (!$var(%sbClient.defreqmethod,0)) set%sbClient.defreqmethod100
710
713
if (!$var(%sbClient.ResultsFileRegex,0)) set%sbClient.ResultsFileRegex /^Se(?:arch|ek)\w+?[_\s]results[_\s]for[_\s]/i
711
714
if (!$var(%sbClient.ResultsTermsRegex,0)) set%sbClient.ResultsTermsRegex /^(Se(?:arch|ek)\w+?)[_\s]results[_\s]for[_\s](.*)$/i
715
+
if (!$var(%sbClient.WebSite,0)) set%sbClient.WebSite https://github.com/mIRC-scripts/sbClient
716
+
if (!$var(%sbClient.CheckWebSite,0)) set%sbClient.CheckWebSite https://raw.githubusercontent.com/mIRC-scripts/sbClient/refs/heads/master/sbClient.ver
712
717
}
713
718
on *:load: {
714
719
if ($script!=$script(1)) .load-rs1$qt($script)
@@ -779,7 +784,6 @@ on *:filercvd:*results?for*: {
779
784
sbClient.ColorNicks%window
780
785
; this line sorts window contents by nick
781
786
;window -bs %window
782
-
;titlebar %window -|- SearchBot results for $qt($right($left($gettok(%r,2,1),-4),-1)) -|- Current channel is %sbClient.SearchChannel -|- rclick for options - r = request file - ctrl-r = req & delete - ctrl-z = find -|-
titlebar%window -|- SearchBot results for $qt(%sbClient.string) -|- Current channel is %sbClient.SearchChannel -|- rclick for options - r = request file - ctrl-r = req & delete - ctrl-z = find -|-
785
789
if (%sbClient.storetxt) {
@@ -856,6 +860,8 @@ on *:start: {
856
860
if ($version<7.46) {
857
861
if (!$isalias(comchar)) .enable #sbclient_nocomchar
858
862
}
863
+
; v7.56 required for $urlget()
864
+
if ($version<7.56) set%sbClient.checkver0
859
865
;
860
866
sbClient.CheckVars
861
867
sbClient.Cleanup
@@ -889,30 +895,22 @@ alias sbClient.Cleanup {
889
895
if (!$sbClient.remove(%f)) sbClient.error Unable to remove %f
890
896
}
891
897
}
898
+
aliassbClient.update.finished {
899
+
if ($urlget($1).state!= ok) return
900
+
var%b = $urlget($1).target
901
+
if (!$bvar(%b,0)) return
902
+
breplace%b10321332
903
+
var%t = $bvar(%b,1,100).text
904
+
if (($gettok(%t,1,59) == sbClient) && ($gettok(%t,2,59) !=$sbClient.version)) {
905
+
sbClient.Display You should update sbClient. You are using version $sbClient.version$+ , but version $gettok(%t,2,59) is available from sbClient website at 12 $+%sbClient.WebSite
if (($gettok(%t,1,59) == sbClient) && ($gettok(%t,2,59) !=$sbClient.version)) {
908
-
sbClient.Display You should update sbClient. You are using version $sbClient.version$+ , but version $gettok(%t,2,59) is available from sbClient website at 12http://www.dukelupus.com
0 commit comments