mIRC Home    About    Download    Register    News    Help

Print Thread
Page 2 of 2 1 2
deegee #178279 07/06/07 09:08 PM
Joined: Aug 2006
Posts: 469
G
Garou Offline OP
Fjord artisan
OP Offline
Fjord artisan
G
Joined: Aug 2006
Posts: 469
Still wont trigger frown

Garou #178281 07/06/07 09:22 PM
Joined: Jun 2006
Posts: 508
D
Fjord artisan
Offline
Fjord artisan
D
Joined: Jun 2006
Posts: 508
You also added a "!" to the var check in this line
Quote:
on *:ctcpreply:version*:{
if !$($+(%,version.check,.,$fulladdress),2) {
..


Code:
on *:ctcpreply:version*:{
  if $($+(%,version.check,.,$fulladdress),2) {
    if !$hget(vercheck) { hmake vercheck 10 }
    if $lines(CTCP.txt) { hdel -w vercheck * | hload -n vercheck CTCP.txt }
    if $hfind(vercheck,$strip($2-),1,R).data { ban -k $($+(%,version.check,.,$fulladdress),2) $nick 2 14Bad Script Detected }
    halt
  }
}

deegee #178282 07/06/07 09:29 PM
Joined: Aug 2006
Posts: 469
G
Garou Offline OP
Fjord artisan
OP Offline
Fjord artisan
G
Joined: Aug 2006
Posts: 469
It kicks everyone on join now when I remove te ! but it does trigger and kick when I get a singke word from the version reply.

Last edited by Garou; 07/06/07 09:48 PM.
Garou #178283 07/06/07 09:58 PM
Joined: Jun 2006
Posts: 508
D
Fjord artisan
Offline
Fjord artisan
D
Joined: Jun 2006
Posts: 508
I'm suspecting you have blank lines in ctcp.txt, causing the data to be matched to anything.

Quickfix: replace
Code:
    if $lines(CTCP.txt) { hdel -w vercheck * | hload -n vercheck CTCP.txt }


With
Code:
    filter -c CTCP.txt CTCP.txt ?*
    if $filtered { hdel -w vercheck * | hload -n vercheck CTCP.txt }


deegee #178324 08/06/07 03:40 PM
Joined: Aug 2006
Posts: 469
G
Garou Offline OP
Fjord artisan
OP Offline
Fjord artisan
G
Joined: Aug 2006
Posts: 469
Can I use my old on/off instead of this with this script?

on $*:text:/^!ctcp (on|off)/Si:*:{

To

on @*:join:#:{
if ( %CTCPREPLY == off ) || ( %CTCPREPLY == $null ) { return }

Last edited by Garou; 08/06/07 03:41 PM.
Page 2 of 2 1 2

Link Copied to Clipboard