mIRC Home    About    Download    Register    News    Help

Print Thread
anti-idle kick script #116960 10/04/05 09:26 PM
Joined: Apr 2005
Posts: 72
B
bodo0815 Offline OP
Babel fish
OP Offline
Babel fish
B
Joined: Apr 2005
Posts: 72
hi
i have this...

Code:
on me:*:join:#chan: { 
  set %scan.idle.time 900 
  $+(.,timerscan.idle.,$chan) 0 30 scanidle $chan 
} 
on me:*:part:#chan: { 
  $+(.,timerscan.idle.,$chan) off 
} 
alias scanidle { 
  var %x = 1 
  while ( %x <= $nick($1,0) ) { 
    if ( $nick($1,%x,v).idle >= %scan.idle.time ) && ( $nick($1,%x,v) != $me ) { 
      kick $1 $nick($1,%x,v) Anti-Idle-Kick 
    } 
    inc %x 
  } 
} 


...but @opīs and %halfopīs have been kicked... plz help

thx bodo

Re: anti-idle kick script #116961 10/04/05 09:31 PM
Joined: Feb 2005
Posts: 24
R
Ratzor Offline
Ameglian cow
Offline
Ameglian cow
R
Joined: Feb 2005
Posts: 24
on me:*:join:#chan: {
set %scan.idle.time 900
$+(.,timerscan.idle.,$chan) 0 30 scanidle $chan
}
on me:*:part:#chan: {
$+(.,timerscan.idle.,$chan) off
}
alias scanidle {
var %x = 1
while ( %x <= $nick($1,0) ) {
if ( $nick($1,%x,v).idle >= %scan.idle.time ) && ( $nick($1,%x,v) != $me ) && ($nick($1,%x,v) !isop $chan) && ($nick($1,%x,v) !ishop $chan) {
kick $1 $nick($1,%x,v) Anti-Idle-Kick
}
inc %x
}
}


i think this should work...

Last edited by Ratzor; 10/04/05 09:31 PM.
Re: anti-idle kick script #116962 11/04/05 03:27 AM
Joined: Apr 2005
Posts: 72
B
bodo0815 Offline OP
Babel fish
OP Offline
Babel fish
B
Joined: Apr 2005
Posts: 72
do not work :-(
same effect on the first script... no errors but opīs and halfops kicked

Re: anti-idle kick script #116963 11/04/05 07:02 AM
Joined: Dec 2002
Posts: 3,547
S
SladeKraven Offline
Hoopy frood
Offline
Hoopy frood
S
Joined: Dec 2002
Posts: 3,547
I've slightly modified the code but it is untested. You was checking if they had operator and half operator status.

Code:
on me:*:join:#chan: { 
  set %scan.idle.time 900 
  $+(.,timerscan.idle.,$chan) 0 30 scanidle $chan 
} 
on me:*:part:#chan: { 
  $+(.,timerscan.idle.,$chan) off 
} 
alias scanidle { 
  var %x = 1 
  while ( %x &lt;= $nick($1,0) ) { 
    if ( $nick($1,%x,v).idle &gt;= %scan.idle.time ) [color:red]&amp;&amp;[/color] ( $nick($1,%x,v) != $me ) [color:red]||[/color] ($nick($1,%x,v) !isop $chan) [color:red]||[/color] ($nick($1,%x,v) !ishop $chan) { 
      kick $1 $nick($1,%x,v) Anti-Idle-Kick 
    } 
    inc %x 
  } 
} 

Re: anti-idle kick script #116964 11/04/05 07:15 AM
Joined: Apr 2005
Posts: 72
B
bodo0815 Offline OP
Babel fish
OP Offline
Babel fish
B
Joined: Apr 2005
Posts: 72
it works :-)
but... my bot have autovoice
service-bot give +o on join, after 10sec my bot give +v
and user have been kicked :-(

Re: anti-idle kick script #116965 11/04/05 07:29 AM
Joined: Dec 2002
Posts: 3,547
S
SladeKraven Offline
Hoopy frood
Offline
Hoopy frood
S
Joined: Dec 2002
Posts: 3,547
Word for the wise, don't auto op just anyone. wink

Re: anti-idle kick script #116966 11/04/05 07:55 AM
Joined: Apr 2005
Posts: 72
B
bodo0815 Offline OP
Babel fish
OP Offline
Babel fish
B
Joined: Apr 2005
Posts: 72
last question :-)
in status windows: Anti-Idle-Kick No such nick/channel
why?
if i delete Anti-Idle-Kick... instatus windows: KICK Not enough parameters

Re: anti-idle kick script #116967 11/04/05 01:58 PM
Joined: Apr 2005
Posts: 10
F
fish01 Offline
Pikka bird
Offline
Pikka bird
F
Joined: Apr 2005
Posts: 10
Quote:
on me:*:join:#chan: {

it is on *:join:#chan:{ }
no *

Re: anti-idle kick script #116968 11/04/05 02:25 PM
Joined: Jun 2003
Posts: 994
C
CtrlAltDel Offline
Hoopy frood
Offline
Hoopy frood
C
Joined: Jun 2003
Posts: 994
Quote:
on me:*:join:#chan: {

this works only when YOU join the channel smile

Quote:
on *:join:#chan: {


this works when anyone joins the channel smile