i'm helping a friend with a script.
the script is designed to stop the channel from being flooded with identical Idents.
When the allowed number of identical idents join the channel, the ident is banned and they're all kicked.

the script also compares the time between 2 nicks joining on the channel with the same ident, and if the time is less then one minute, the nick is banned.

Code:
  
on 1:JOIN:%IJSchannel: {   
  set %IJSrawswitch on 
  who $nick
  set %IJSrawswitch off
  if ( $ialchan(*!* $+ %IJSaddy $+ @*,%IJSchannel,0) == %IJScount ) { 
    msg x ban %IJSchannel *!* $+ %IJSaddy $+ @* %IJStime %IJSlevel %IJSreason 
    %Bident IJSaddy 
    %bident.Time $ctime
  }
  if ( $ialchan(*!* $+ %IJSaddy $+ @*,%IJSchannel,0) == %Bident ) {
    %Nident.Time $ctime
    if ( $calc(%Nident-%Bident) <= 1 minute ) { ban $nick }
    else halt
  }
}

i just got tired of it and thought i would see if i can get some help while i sleep

Thanks all smile