mIRC Home    About    Download    Register    News    Help

Print Thread
#116960 10/04/05 09:26 PM
Joined: Apr 2005
Posts: 72
B
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

#116961 10/04/05 09:31 PM
Joined: Feb 2005
Posts: 24
R
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.
#116962 11/04/05 03:27 AM
Joined: Apr 2005
Posts: 72
B
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

#116963 11/04/05 07:02 AM
Joined: Dec 2002
Posts: 3,547
S
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 
  } 
} 

#116964 11/04/05 07:15 AM
Joined: Apr 2005
Posts: 72
B
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 :-(

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

#116966 11/04/05 07:55 AM
Joined: Apr 2005
Posts: 72
B
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

#116967 11/04/05 01:58 PM
Joined: Apr 2005
Posts: 10
F
Pikka bird
Offline
Pikka bird
F
Joined: Apr 2005
Posts: 10
Quote:
on me:*:join:#chan: {

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

#116968 11/04/05 02:25 PM
Joined: Jun 2003
Posts: 994
C
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


Link Copied to Clipboard