Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ;------------------------------------------------------------------------------
- ; Designed And Written By TehJibba 2013
- ; Thanks to OMGUFAIL & Godfatherdon for testing
- ; tbs 2015
- ;------------------------------------------------------
- on *:load: { echo -gta 13,1» 8Loaded 13Torrentleech On Join User Check
- set %tlis.class 1 | set %tlis.title 1 | set %tlis.stats 1 | set %tlis.profile 1 | set %tlis.join 1 | set %tlis.ojiec 1 | set %tlis.areec 1 | set %tlis.venw 1 | set %tlis.clkcon 1
- ;browser path
- set %tlis.browser $null
- ;Xplosive bold :)_
- ;set %tlis.gbold $null
- set %tlis.gbold $+()
- }
- on *:unload: { echo -gta 13,1» 8Unloaded 13Torrentleech On Join User Che ck | unset %tlis.* }
- on *:join:#torrentleech,#tlhelp: {
- var %n = 1, %m = 1, %nick = $nick, %host = $address(%nick,2), %totnicks = $iif($ini($scriptdirnickex.ini,nicks,0),$ini($scriptdirnickex.ini,nicks,0),1), %tothosts = $iif($ini($scriptdirnickex.ini,hosts,0),$ini($scriptdirnickex.ini,hosts,0),1)
- while (%n <= %totnicks) { if ($readini($scriptdirnickex.ini,n,nicks,%n) iswm %nick) { halt } | inc %n }
- while (%m <= %tothosts) { if (%host == $readini($scriptdirnickex.ini,n,hosts,%m)) { halt } | inc %m }
- _tlms $cid $chan $+(/profile/,%nick)
- }
- on *:nick: {
- var %n = 1, %m = 1, %nick = $newnick, %host = $address(%nick,2), %totnicks = $iif($ini($scriptdirnickex.ini,nicks,0),$ini($scriptdirnickex.ini,nicks,0),1), %tothosts = $iif($ini($scriptdirnickex.ini,hosts,0),$ini($scriptdirnickex.ini,hosts,0),1)
- while (%n <= %totnicks) { if ($readini($scriptdirnickex.ini,n,nicks,%n) iswm %nick) { halt } | inc %n }
- while (%m <= %tothosts) { if (%host == $readini($scriptdirnickex.ini,n,hosts,%m)) { halt } | inc %m }
- _tlms $cid $chan $+(/profile/,%nick)
- }
- menu channel,status {
- TL User Check
- .Manual Check: { var %manick = $?="Enter Nick To Check:" | if (%manick != $null) { _tlms $cid $chan $+(/profile/,%manick) } }
- .View User
- ..Profile: { var %vpnick = $?="Enter Nick To Check:" | if (%vpnick != $null) { run %tlis.browser $+(https://v4.torrentleech.org/profile/,%vpnick) } }
- ..Logs: { var %vulnick = $?="Enter Nick To Check:" | if (%vulnick != $null) { run %tlis.browser $+(https://v4.torrentleech.org/profile/,%vulnick,#User_Log) } }
- .Exclusion Management
- ..List All Exclusions: { _tlucexlst }
- ..Add New Exclusion: { _tlucadd }
- ..Remove Exclusion
- ...Remove Nick: { _tlucremnick }
- ...Remove Host: { _tlucremhost }
- ..Clear
- ...Clear Nick Exclusion List:$_clrlist(nicks)
- ...Clear Host Exclusion List:$_clrlist(hosts)
- ...Clear Both Exclusion Lists:$_clrlist(both)
- }
- menu nicklist,query {
- TL User Check
- .Quick Check: { _tlms $cid $chan $+(/profile/,$1) }
- .Manual Check: { var %manick = $?="Enter Nick To Check:" | if (%manick != $null) { _tlms $cid $chan $+(/profile/,%manick) } }
- .View User
- ..Profile: { run %tlis.browser $+(https://v4.torrentleech.org/profile/,$1) }
- ..Logs: { run %tlis.browser $+(https://v4.torrentleech.org/profile/,$1,#User_Log) }
- .Exclusion Management
- ..List All Exclusions: { _tlucexlst }
- ..Add Exclusion: { _tlucadd $1 }
- ..Remove Exclusion
- ...Nick: { _tlucremnick $1 }
- ...Host: { _tlucremhost $address($1,2) }
- ..Clear
- ...Nick Exclusion List:$_clrlist(nicks)
- ...Host Exclusion List:$_clrlist(hosts)
- ...Both Exclusion Lists:$_clrlist(both)
- }
- menu nicklist,query,channel,status {
- TL User Check
- .Output Options
- ..On Join Info
- ...Echo Channel: { if (!%tlis.ojiec) { unset %tlis.ojinw | set %tlis.ojiec 1 } | echo -gt $chan 13,1»8 Join Info Echo13 turned on }
- ...New Window: { if (!%tlis.ojinw) { unset %tlis.ojiec | set %tlis.ojinw 1 } | echo -gt $chan 13,1»8 Join Info New Window13 turned on }
- ..Add/Rem Exclusions
- ...Echo Channel: { if (!%tlis.areec) { unset %tlis.arenw | set %tlis.areec 1 } | echo -gt $chan 13,1»8 Add/Rem Exclusions Echo13 turned on }
- ...New Window: { if (!%tlis.arenw) { unset %tlis.areec | set %tlis.arenw 1 } | echo -gt $chan 13,1»8 Add/Rem Exclusions New Window13 turned on }
- ..View Exclusions
- ...Echo Channel: { if (!%tlis.veec) { unset %tlis.venw | set %tlis.veec 1 } | echo -gt $chan 13,1»8 View Exclusions Echo13 turned on }
- ...New Window: { if (!%tlis.venw) { unset %tlis.veec | set %tlis.venw 1 } | echo -gt $chan 13,1»8 View Exclusions New Window13 turned on }
- ;-----------------------------------
- .Info Options
- ..User Class
- ...Turn On: { if (!%tlis.class) { set %tlis.class 1 } | echo -gt $chan 13,1»8 User Class13 will now be displayed }
- ...Turn Off: { if (%tlis.class) { unset %tlis.class } | echo -gt $chan 13,1»8 User Class13 turned off }
- ..User Title
- ...Turn On: { if (%!tlis.title) { set %tlis.title 1 } | echo -gt $chan 13,1»8 User Title13 will now be displayed }
- ...Turn Off: { if (%tlis.title) { unset %tlis.title } | echo -gt $chan 13,1»8 User Title13 turned off }
- ..User Stats
- ...Turn On: { if (!%tlis.stats) { set %tlis.stats 1 } | echo -gt $chan 13,1»8 User Stats13 will now be displayed }
- ...Turn Off: { if (%tlis.stats) { unset %tlis.stats } | echo -gt $chan 13,1»8 User Stats13 turned off }
- ..Join Date
- ...Turn On: { if (!%tlis.join) { set %tlis.join 1 } | echo -gt $chan 13,1»8 Join Date13 will now be displayed }
- ...Turn Off: { if (%tlis.join) { unset %tlis.join } | echo -gt $chan 13,1»8 Join Date13 turned off }
- ;-----------------------------------
- .Link Options
- ..Click Confirm
- ...Turn On: { if (!%tlis.clkcon) { set %tlis.clkcon 1 } | echo -gt $chan 13,1»8 Confirm Click13 turned on15 You will now need to click 7Yes15 when clicking14 @link }
- ...Turn Off: { if (%tlis.clkcon) { unset %tlis.clkcon } | echo -gt $chan 13,1»8 Confirm Click13 turned off }
- ..Profile link
- ...Turn On: { if (!%tlis.profile) { set %tlis.profile 1 } | echo -gt $chan 13,1»8 Profile Link13 will now be displayed }
- ...Turn Off: { if (%tlis.profile) { unset %tlis.profile } | echo -gt $chan 13,1»8 Profile Link13 turned off }
- ..Edit link
- ...Turn On: { if (!%tlis.edit) { set %tlis.edit 1 } | echo -gt $chan 13,1»8 Edit Link13 will now be displayed }
- ...Turn Off: { if (%tlis.edit) { unset %tlis.edit } | echo -gt $chan 13,1»8 Edit Link13 turned off }
- ..Logs link
- ...Turn On: { if (!%tlis.logs) { set %tlis.logs 1 } | echo -gt $chan 13,1»8 Logs Link13 will now be displayed }
- ...Turn Off: { if (%tlis.logs) { unset %tlis.logs } | echo -gt $chan 13,1»8 Logs Link13 turned off }
- ..IP History link
- ...Turn On: { if (!%tlis.iphist) { set %tlis.iphist 1 } | echo -gt $chan 13,1»8 IP History Link13 will now be displayed }
- ...Turn Off: { if (%tlis.iphist) { unset %tlis.iphist } | echo -gt $chan 13,1»8 IP History Link13 turned off }
- ..Snatchlist link
- ...Turn On: { if (!%tlis.snatch) { set %tlis.snatch 1 } | echo -gt $chan 13,1»8 Snatchlist Link13 will now be displayed }
- ...Turn Off: { if (%tlis.snatch) { unset %tlis.snatch } | echo -gt $chan 13,1»8 Snatchlist Link13 turned off }
- }
- alias -l _clrlist {
- if ($1 == nicks) { if ($input(Are you sure you want to completely clear the nick exclusion list?,y,TL User check)) { remini $scriptdirnickex.ini nicks | echo -gt $chan 13,1»8 Nick Exclusion List13 is now empty } }
- if ($1 == hosts) { if ($input(Are you sure you want to completely clear the host exclusion list?,y,TL User check)) { remini $scriptdirnickex.ini hosts | echo -gt $chan 13,1»8 Host Exclusion List13 is now empty } }
- if ($1 == Both) { if ($input(Are you sure you want to completely clear the both exclusion lists?,y,TL User check)) { .remove -b $scriptdirnickex.ini | echo -gt $chan 13,1»8 Exclusion List13 is now empty } }
- }
- alias -l _exrenumber1 {
- var %r = 1, %exnick = $ini($scriptdirnickex.ini,nicks,0)
- if (%exnick) {
- while (%r <= %exnick) { set $+(%,exrenum.,%r) $readini($scriptdirnickex.ini,n,nicks,$ini($scriptdirnickex.ini,nicks,%r)) | inc %r }
- _exrenumber2
- }
- }
- alias -l _exrenumber2 {
- var %n = 1, %totexvars = $var(%exrenum.*,0)
- if (%totexvars) { remini $scriptdirnickex.ini nicks }
- while (%n <= %totexvars) { writeini $scriptdirnickex.ini nicks %n $eval($+(%,exrenum.,%n),2) | inc %n }
- unset %exrenum.*
- }
- alias -l _exrenumber3 {
- var %r = 1, %exhost = $ini($scriptdirnickex.ini,hosts,0)
- if (%exhost) {
- while (%r <= %exhost) { set $+(%,exrenum.,%r) $readini($scriptdirnickex.ini,n,hosts,$ini($scriptdirnickex.ini,hosts,%r)) | inc %r }
- _exrenumber4
- }
- }
- alias -l _exrenumber4 {
- var %n = 1, %totexvars = $var(%exrenum.*,0)
- if (%totexvars) { remini $scriptdirnickex.ini hosts }
- while (%n <= %totexvars) { writeini $scriptdirnickex.ini hosts %n $eval($+(%,exrenum.,%n),2) | inc %n }
- unset %exrenum.*
- }
- alias -l _tlucadd {
- var %x = 1, %v = 1, %newexnick = $iif($1,$1,$?="Enter Nick To Exclude:"), %exnick = $ini($scriptdirnickex.ini,nicks,0)
- if (($input(Add $+(%newexnick,'s) Host As Well,y,Excludes)) && (%newexnick)) { var %newexhost = $address(%newexnick,2), %exhost = $ini($scriptdirnickex.ini,hosts,0) }
- if (%newexhost) {
- if ((%exnick) && (%exhost)) {
- while (%x <= %exnick) { if (%newexnick == $readini($scriptdirnickex.ini,n,nicks,%x)) { set %_exnickadd 1 } | inc %x }
- while (%v <= %exhost) { if (%newexhost == $readini($scriptdirnickex.ini,n,hosts,%v)) { set %_exhostadd 1 } | inc %v }
- if (%_exnickadd) {
- if (%tlis.arenw) { if (!$window(@UserCheck)) { window -Cag2 @UserCheck 1 1 } | window -g2 @UserCheck | aline -p @UserCheck $timestamp 13,1» User: $+(8,%newexnick,13) is already in the user check exclusion list }
- if (%tlis.areec) { echo -gt $chan 13,1» User: $+(8,%newexnick,13) is already in the user check exclusion list }
- unset %_exnickadd
- }
- if (%_exhostadd) {
- if (%tlis.arenw) { if (!$window(@UserCheck)) { window -Cag2 @UserCheck 1 1 } | window -g2 @UserCheck | aline -p @UserCheck $timestamp 13,1» User: $+(8,%newexhost,13) is already in the user check exclusion list }
- if (%tlis.areec) { echo -gt $chan 13,1» User: $+(8,%newexhost,13) is already in the user check exclusion list }
- unset %_exhostadd
- }
- else {
- writeini $scriptdirnickex.ini nicks $calc(%exnick + 1) %newexnick | writeini $scriptdirnickex.ini hosts $calc(%exhost + 1) %newexhost
- if (%tlis.arenw) { if (!$window(@UserCheck)) { window -Cag2 @UserCheck 1 1 } | window -g2 @UserCheck | aline -p @UserCheck $timestamp 13,1» User: $+(8,%newexnick,13) and Host: $+(8,%newexhost,13) added to the user check exclusion list }
- if (%tlis.areec) { echo -gt $chan 13,1» User: $+(8,%newexnick,13) and Host: $+(8,%newexhost,13) added to the user check exclusion list }
- }
- }
- else {
- writeini $scriptdirnickex.ini nicks 1 %newexnick | writeini $scriptdirnickex.ini hosts 1 %newexhost
- if (%tlis.arenw) { if (!$window(@UserCheck)) { window -Cag2 @UserCheck 1 1 } | window -g2 @UserCheck | aline -p @UserCheck $timestamp 13,1» User: $+(8,%newexnick,13) and Host: $+(8,%newexhost,13) added to the user check exclusion list }
- if (%tlis.areec) { echo -gt $chan 13,1» User: $+(8,%newexnick,13) and Host: $+(8,%newexhost,13) added to the user check exclusion list }
- }
- }
- else {
- if (%exnick) {
- while (%x <= %exnick) {
- if (%newexnick == $readini($scriptdirnickex.ini,n,nicks,%x)) { set %_exnickadd 1 }
- inc %x
- }
- if (%_exnickadd) {
- if (%tlis.arenw) { if (!$window(@UserCheck)) { window -Cag2 @UserCheck 1 1 } | window -g2 @UserCheck | aline -p @UserCheck $timestamp 13,1» User: $+(8,%newexnick,13) is already in the user check exclusion list }
- if (%tlis.areec) { echo -gt $chan 13,1» User: $+(8,%newexnick,13) is already in the user check exclusion list }
- unset %_exnickadd
- }
- else {
- writeini $scriptdirnickex.ini nicks $calc(%exnick + 1) %newexnick
- if (%tlis.arenw) { if (!$window(@UserCheck)) { window -Cag2 @UserCheck 1 1 } | window -g2 @UserCheck | aline -p @UserCheck $timestamp 13,1» User: $+(8,%newexnick,13) added to the user check exclusion list }
- if (%tlis.areec) { echo -gt $chan 13,1» User: $+(8,%newexnick,13) added to the user check exclusion list }
- }
- }
- else {
- writeini $scriptdirnickex.ini nicks 1 %newexnick
- if (%tlis.arenw) { if (!$window(@UserCheck)) { window -Cag2 @UserCheck 1 1 } | window -g2 @UserCheck | aline -p @UserCheck $timestamp 13,1» User: $+(8,%newexnick,13) added to the user check exclusion list }
- if (%tlis.areec) { echo -gt $chan 13,1» User: $+(8,%newexnick,13) added to the user check exclusion list }
- }
- }
- }
- alias -l _tlucremnick {
- var %x = 1, %delexnick = $iif($1,$1,$?="Enter Nick To Remove:"), %exnick = $ini($scriptdirnickex.ini,nicks,0)
- if (%delexnick) {
- if (%exnick) {
- while (%x <= %exnick) { if (%delexnick == $readini($scriptdirnickex.ini,n,nicks,%x)) { set %_exnickdel %x } | inc %x }
- if (%_exnickdel) {
- remini $scriptdirnickex.ini nicks %_exnickdel
- if (%tlis.arenw) { if (!$window(@UserCheck)) { window -Cag2 @UserCheck 1 1 } | window -g2 @UserCheck | aline -p @UserCheck $timestamp 13,1» User: $+(8,%delexnick,13) removed from the exclusion list }
- if (%tlis.areec) { echo -gt $chan 13,1» User: $+(8,%delexnick,13) removed from the exclusion list }
- unset %_exnickdel | _exrenumber1
- }
- else {
- if (%tlis.arenw) { if (!$window(@UserCheck)) { window -Cag2 @UserCheck 1 1 } | window -g2 @UserCheck | aline -p @UserCheck $timestamp 13,1» User: $+(8,%delexnick,13) was not found in the user check exclusion list }
- if (%tlis.areec) { echo -gt $chan 13,1» User: $+(8,%delexnick,13) was not found in the user check exclusion list }
- }
- }
- else {
- if (%tlis.arenw) { if (!$window(@UserCheck)) { window -Cag2 @UserCheck 1 1 } | window -g2 @UserCheck | aline -p @UserCheck $timestamp 13,1» The nick exclusion list is currently empty }
- if (%tlis.areec) { echo -gt $chan 13,1» The nick exclusion list is currently empty }
- }
- }
- }
- alias -l _tlucremhost {
- var %x = 1, %delexhost = $iif($1,$1,$?="Enter Host To Remove:"), %exhost = $ini($scriptdirnickex.ini,hosts,0)
- if (%delexhost) {
- if (%exhost) {
- while (%x <= %exhost) { if (%delexhost == $readini($scriptdirnickex.ini,n,hosts,%x)) { set %_exhostdel %x } | inc %x }
- if (%_exhostdel) {
- remini $scriptdirnickex.ini hosts %_exhostdel
- if (%tlis.arenw) { if (!$window(@UserCheck)) { window -Cag2 @UserCheck 1 1 } | window -g2 @UserCheck | aline -p @UserCheck $timestamp 13,1» User: $+(8,%delexhost,13) removed from the exclusion list }
- if (%tlis.areec) { echo -gt $chan 13,1» User: $+(8,%delexhost,13) removed from the exclusion list }
- unset %_exhostdel | _exrenumber3
- }
- else {
- if (%tlis.arenw) { if (!$window(@UserCheck)) { window -Cag2 @UserCheck 1 1 } | window -g2 @UserCheck | aline -p @UserCheck $timestamp 13,1» User: $+(8,%delexhost,13) was not found in the user check exclusion list }
- if (%tlis.areec) { echo -gt $chan 13,1» User: $+(8,%delexhost,13) was not found in the user check exclusion list }
- }
- }
- else {
- if (%tlis.arenw) { if (!$window(@UserCheck)) { window -Cag2 @UserCheck 1 1 } | window -g2 @UserCheck | aline -p @UserCheck $timestamp 13,1» The host exclusion list is currently empty }
- if (%tlis.areec) { echo -gt $chan 13,1» The host exclusion list is currently empty }
- }
- }
- }
- alias -l _tlucexlst {
- var %l = 1, %z = 1, %exnick = $ini($scriptdirnickex.ini,nicks,0), %exhost = $ini($scriptdirnickex.ini,hosts,0)
- if (%tlis.venw) { if (!$window(@UserCheck)) { window -Cag2 @UserCheck 1 1 } | window -g2 @UserCheck | aline -p @UserCheck $timestamp 13,1»7 Nick13 Exclusion List: }
- if (%tlis.veec) { echo -gt $chan 13,1»7 Nick13 Exclusion List: }
- if (%exnick) {
- while (%l <= %exnick) {
- if (%tlis.venw) { aline -p @UserCheck $timestamp 13,1»8 $readini($scriptdirnickex.ini,n,nicks,%l) }
- if (%tlis.veec) { | echo -gt $chan 13,1»8 $readini($scriptdirnickex.ini,n,nicks,%l) }
- inc %l
- }
- }
- else {
- if (%tlis.venw) { if (!$window(@UserCheck)) { window -Cag2 @UserCheck 1 1 } | window -g2 @UserCheck | aline -p @UserCheck $timestamp 13,1»4 - NULL - }
- if (%tlis.veec) { echo -gt $chan 13,1»4 - NULL - }
- }
- ;------------------
- if (%tlis.venw) { if (!$window(@UserCheck)) { window -Cag2 @UserCheck 1 1 } | window -g2 @UserCheck | aline -p @UserCheck $timestamp 13,1»7 Host13 Exclusion List: }
- if (%tlis.veec) { echo -gt $chan 13,1»7 Host13 Exclusion List: }
- if (%exhost) {
- while (%z <= %exhost) {
- if (%tlis.venw) { aline -p @UserCheck $timestamp 13,1»8 $readini($scriptdirnickex.ini,n,hosts,%z) }
- if (%tlis.veec) { echo -gt $chan 13,1»8 $readini($scriptdirnickex.ini,n,hosts,%z) }
- inc %z
- }
- }
- else {
- if (%tlis.venw) { if (!$window(@UserCheck)) { window -Cag2 @UserCheck 1 1 } | window -g2 @UserCheck | aline -p @UserCheck $timestamp 13,1»4 - NULL - }
- if (%tlis.veec) { echo -gt $chan 13,1»4 - NULL - }
- }
- }
- alias _tlms { var %sockname = tlmsock. $+ $rand(10000,99999) | sockopen -e %sockname www.torrentleech.org 443 | sockmark %sockname $1- }
- on *:sockopen:tlmsock.*: {
- if ($sockerr) { /echo -g $gettok($sock($sockname).mark, 2, 32) Error. | halt }
- else {
- sockwrite -nt $sockname GET $gettok($sock($sockname).mark,3,32) HTTP/1.1
- sockwrite -nt $sockname Host: www.torrentleech.org
- sockwrite -nt $sockname Content-type: text/html
- sockwrite -nt $sockname User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:20.0) Gecko/20100101 Firefox/20.0
- sockwrite -nt $sockname Connection: close
- sockwrite -nt $sockname Cookie: tluid=xxx; tlpass=xxxxx; pass_hash=xxxxxx;
- sockwrite -nt $sockname $crlf
- }
- }
- on *:sockread:tlmsock.*: {
- var %info | sockread %info
- if (<h1>An error occurred</h1> isin %info) {
- if (%tlis.ojinw) { if (!$window(@UserCheck)) { window -Cag2 @UserCheck 1 1 } | window -g2 @UserCheck | aline -p @UserCheck $timestamp 13» User: $+(8,$remove($gettok($sock($sockname).mark,3,32),/profile/),13) is 4not13 a member }
- if (%tlis.ojiec) { echo -t $gettok($sock($sockname).mark, 2, 32) 13» User: $+(8,$remove($gettok($sock($sockname).mark,3,32),/profile/),13) is 4not13 a member }
- }
- else {
- if ($regex(%info,/<title>Profile for (.*?) \:/)) { sockmark $sockname $sock($sockname).mark uname: $+ $encode($regml(1),m) }
- if ($regex(%info,/Down:</b></span>(.*?)</)) { sockmark $sockname $sock($sockname).mark down: $+ $encode($regml(1),m) }
- if ($regex(%info,/Up:</b></span>(.*?)</)) { sockmark $sockname $sock($sockname).mark up: $+ $encode($regml(1),m) }
- if ($regex(%info,/<b>Ratio:</b>(.*?)</)) { sockmark $sockname $sock($sockname).mark ratio: $+ $encode($regml(1),m) }
- if ($regex(%info,/<center>\.\:\: (.*?) \:\:\./)) { sockmark $sockname $sock($sockname).mark title: $+ $encode($regml(1),m) }
- if ($regex(%info,/<span\sclass="user_disabled">/)) { sockmark $sockname $sock($sockname).mark ban: $+ $encode(Disabled,m) }
- ;if ($regex(%info,/<img alt="(.*?)" src="/images/disabled.png"/)) { if ($regml(1) == Disabled) { sockmark $sockname $sock($sockname).mark ban: $+ $encode($regml(1),m) } }
- if ($regex(%info,/<img alt="(.*?)" src="/images/pending.png"/)) { if ($regml(1) == Pending) { sockmark $sockname $sock($sockname).mark pend: $+ $encode($regml(1),m) } }
- if ($regex(%info,/<img alt="(.*?)" src="/images/warned.png"/)) { if ($regml(1) == Warned) { sockmark $sockname $sock($sockname).mark warn: $+ $encode($regml(1),m) } }
- if ($regex(%info,/<td>Join Date</td><td>(.*?)</)) { sockmark $sockname $sock($sockname).mark joined: $+ $encode($regml(1),m) }
- if ($regex(%info,/<td>Class</td><td>(.*?)</)) { sockmark $sockname $sock($sockname).mark class: $+ $encode($regml(1),m) }
- if ($regex(%info,/<tr class="even"><td>Torrent Comments</td><td>(.*?)</)) {
- var %uname = $decode($gettok($wildtok($sock($sockname).mark, uname:*, 1, 32), 2, 58),m)
- var %down = $decode($gettok($wildtok($sock($sockname).mark, down:*, 1, 32), 2, 58),m) | %down = $remove(%down, $chr(32))
- var %up = $decode($gettok($wildtok($sock($sockname).mark, up:*, 1, 32), 2, 58),m) | %up = $remove(%up, $chr(32))
- var %ratio = $decode($gettok($wildtok($sock($sockname).mark, ratio:*, 1, 32), 2, 58),m) | %ratio = $remove(%ratio, $chr(32))
- var %title = $decode($gettok($wildtok($sock($sockname).mark, title:*, 1, 32), 2, 58),m)
- ;var %ban = $decode($gettok($wildtok($sock($sockname).mark, ban:*, 1, 32), 2, 58),m)
- var %ban = $decode($gettok($wildtok($sock($sockname).mark, ban:*, 1, 32), 2, 58),m)
- var %pend = $decode($gettok($wildtok($sock($sockname).mark, pend:*, 1, 32), 2, 58),m)
- var %warn = $decode($gettok($wildtok($sock($sockname).mark, warn:*, 1, 32), 2, 58),m)
- var %joined.pre = $decode($gettok($wildtok($sock($sockname).mark, joined:*, 1, 32), 2, 58),m)
- var %class = $decode($gettok($wildtok($sock($sockname).mark, class:*, 1, 32), 2, 58),m)
- var %join.p1 = $gettok(%joined.pre,3,32) | var %join.p2 = $gettok(%joined.pre,2,32) | var %join.p3 = $gettok(%joined.pre,4,32) | var %joined = %join.p1 %join.p2 %join.p3
- var %noob = $null
- if (%ban != $null) { %noob = $+(15,$chr(60),4,%ban,15,$chr(62)) }
- if ((%warn != $null) && (%pend == $null)) { %noob = $+(15,$chr(60),4,%warn,15,$chr(62)) }
- if ((%warn == $null) && (%pend != $null)) { %noob = $+(15,$chr(60),4,%pend,15,$chr(62)) }
- var %output = 13,1» $+(%tlis.gbold) $+ User: $+(8,%uname) $+(%noob) $iif(%tlis.class,$+(15,$chr(60),7,%class,15,$chr(62))) $iif(%tlis.title,$iif(%title,$+(15,title,$chr(60),7,%title,15,$chr(62)))) $iif(%tlis.stats,$+(15,stats,$chr(60),4,D:,%down,9,$chr(32),U:,%up,11,$chr(32),R:,%ratio,15,$chr(62))) $iif(%tlis.join,$+(15,joined,$chr(60),7,%joined,15,$chr(62))) $+(14) $+ $iif(%tlis.profile,@profile) $iif(%tlis.edit,@edit) $iif(%tlis.logs,@logs) $iif(%tlis.iphist,@ipHist) $iif(%tlis.snatch,@snatch) $iif(%tlis.invite,@inv)
- if (%tlis.ojinw) { if (!$window(@UserCheck)) { window -Cag2 @UserCheck 1 1 } | window -g2 @UserCheck | aline -p @UserCheck $timestamp %output }
- if (%tlis.ojiec) { scid $gettok($sock($sockname).mark, 1, 32) echo -t $gettok($sock($sockname).mark, 2, 32) %output }
- sockclose $sockname
- }
- }
- }
- on *:hotlink:*:*: {
- if ($regex($strip($hotline),/User: (.+?) .+?/igs)) {
- var %user = $regml(1)
- if (!$istok(@profile @logs @ipHist @edit @snatch @inv,$strip($1),32)) { halt }
- if (($strip($1) == @profile) && ($mouse.key & 1)) {
- if (%tlis.clkcon) { if ($input(View $+(%user,'s) Profile?,y,View Profile)) { run %tlis.browser $+(https://v4.torrentleech.org/profile/,%user) } }
- else { run %tlis.browser $+(https://v4.torrentleech.org/profile/,%user) }
- }
- if (($strip($1) == @logs) && ($mouse.key & 1)) {
- if (%tlis.clkcon) { if ($input(View $+(%user,'s) Logs?,y,View Logs)) { run %tlis.browser $+(https://v4.torrentleech.org/profile/,%user,$chr(35),User_Log) } }
- else { run %tlis.browser $+(https://v4.torrentleech.org/profile/,%user,$chr(35),User_Log) }
- }
- if (($strip($1) == @ipHist) && ($mouse.key & 1)) {
- if (%tlis.clkcon) { if ($input(View $+(%user,'s) IP History?,y,View IP History)) { run %tlis.browser $+(https://v4.torrentleech.org/profile/,%user,$chr(35),IP_History) } }
- else { run %tlis.browser $+(https://v4.torrentleech.org/profile/,%user,$chr(35),IP_History) }
- }
- if (($strip($1) == @edit) && ($mouse.key & 1)) {
- if (%tlis.clkcon) { if ($input(Edit $+(%user,?),y,Edit User)) { run %tlis.browser $+(https://v4.torrentleech.org/profile/,%user,$chr(35),Edit_Profile) } }
- else { run %tlis.browser $+(https://v4.torrentleech.org/profile/,%user,$chr(35),Edit_Profile) }
- }
- if (($strip($1) == @snatch) && ($mouse.key & 1)) {
- if (%tlis.clkcon) { if ($input(View $+(%user,'s) Snatchist,y,View Snatchlist)) { run %tlis.browser $+(https://v4.torrentleech.org/profile/,%user,$chr(35),User_Snatchlist) } }
- else { run %tlis.browser $+(https://v4.torrentleech.org/profile/,%user,$chr(35),User_Snatchlist) }
- }
- if (($strip($1) == @inv) && ($mouse.key & 1)) {
- if (%tlis.clkcon) { if ($input(View $+(%user,'s) Invites,y,View Invites)) { run %tlis.browser $+(https://v4.torrentleech.org/profile/,%user,$chr(35),Invitations) } }
- else { run %tlis.browser $+(https://v4.torrentleech.org/profile/,%user,$chr(35),Invitations) }
- }
- }
- else { halt }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement