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
@@ -202,7 +200,7 @@ on *:dialog:sbClient_options:sclick:56: {
202
200
did-r sbClient_options 51
203
201
didtok sbClient_options 5144%sbClient.channels
204
202
}
205
-
on *:dialog:sbClient_options:sclick:91:url-anhttp://www.dukelupus.com
203
+
on *:dialog:sbClient_options:sclick:91:url-an%sbClient.WebSite
206
204
on *:dialog:sbClient_options:sclick:76:sbClient.update
207
205
on *:dialog:sbClient_options:sclick:96:set%sbClient.groupfind$did(96).state
208
206
on *:dialog:sbClient_options:sclick:110:set%sbClient.versionresponse$did(110).state
@@ -251,6 +249,19 @@ alias sbClient.GetNetworkID {
251
249
inc%cnter
252
250
}
253
251
}
252
+
aliassbClient.GetAllNetChannels {
253
+
var%i = 1, %c = $1
254
+
while ($chan(%i) !=$null) {
255
+
var%c = $addtok(%c,$+($v1,@,$network),44)
256
+
inc%i
257
+
}
258
+
return%c
259
+
}
260
+
aliassbClient.GetAllChannels {
261
+
var%c
262
+
scon-a var % $+ c = $!sbClient.GetAllNetChannels(%c)
263
+
return%c
264
+
}
254
265
ctcp *:TRIGGER:?: {
255
266
if ($($+(%,sbClient.,$3,@,$2,.requested),2) ==1) {
256
267
set$+(%,sbClient.,$3,@,$2,.trigger) $4
@@ -260,7 +271,7 @@ ctcp *:TRIGGER:?: {
260
271
}
261
272
ctcp *:VERSION:?: {
262
273
if (!%sbClient.versionresponse) return
263
-
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)
264
275
}
265
276
dialogsbClient_search {
266
277
title"sbClient search dialog"
@@ -286,17 +297,7 @@ on *:dialog:sbClient_search:init:0: {
286
297
if (%sbClient.menu.local) did-c sbClient_search 10
287
298
if (%sbClient.menu.channel) did-c sbClient_search 11
288
299
if (%sbClient.find.channel) did-c sbClient_search 25
@@ -323,11 +324,9 @@ on *:dialog:sbClient_search:sclick:1: {
323
324
if ($did(10).state) {
324
325
; do local search
325
326
if (%sbClient.searching==1) {
326
-
if ($input(Local search seems to be already active. Do you want to stop active local search and start your current search?,yqd,Local search is active) ==$true) {
327
-
sbClientdll Stop 1
328
-
set%sbClient.searching0
329
-
}
330
-
elsereturn
327
+
if ($input(Local search seems to be already active. Do you want to stop active local search and start your current search?,yqd,Local search is active) !=$true) return
328
+
sbClientdll Stop 1
329
+
set%sbClient.searching0
331
330
if ($did(11).state) goto chansearch
332
331
}
333
332
if (!%sbClient.ListFolder) {
@@ -346,7 +345,7 @@ on *:dialog:sbClient_search:sclick:1: {
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 -|-
790
789
if (%sbClient.storetxt) {
@@ -861,6 +860,8 @@ on *:start: {
861
860
if ($version<7.46) {
862
861
if (!$isalias(comchar)) .enable #sbclient_nocomchar
863
862
}
863
+
; v7.56 required for $urlget()
864
+
if ($version<7.56) set%sbClient.checkver0
864
865
;
865
866
sbClient.CheckVars
866
867
sbClient.Cleanup
@@ -894,30 +895,22 @@ alias sbClient.Cleanup {
894
895
if (!$sbClient.remove(%f)) sbClient.error Unable to remove %f
895
896
}
896
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)) {
913
-
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