mIRC Homepage

kick ban

Posted By: Cheech

kick ban - 27/03/03 01:14 AM

how can you make a kick/ban update itself ?
i want to be able to mass kick/ban up to 12 users but if thier isnt 12 users i want to be able to kick/ban say 3 or 5 however many might happen to be there at the time ?
i looked thru the help at the $$identifiers but nothing seemed to work ? any ideas would be great thx smile
Posted By: Syperus

Re: kick ban - 27/03/03 01:40 AM

$nick(#,0) will give you the total number of ppl in the chat room.. set the total number in a variable
Posted By: Cheech

Re: kick ban - 27/03/03 01:43 AM

thats not exactly what i want to do i want to kick/ban all selected nicks in the nick list from 1 to a maximum of 12 ?
Posted By: Syperus

Re: kick ban - 27/03/03 01:48 AM

ahh..i don't think thats possible without using dll's. if you can do it, you would use $mouse but i dunno if u can or not. sorry
Posted By: Cheech

Re: kick ban - 27/03/03 01:49 AM

ok thx for tryin smile
Posted By: Syperus

Re: kick ban - 27/03/03 01:51 AM

np
Posted By: LO_KEY

Re: kick ban - 27/03/03 02:30 AM

$snick($chan,0) will return how many nicks are selected in a nicklist on $chan

loothru it to kik who there is to kik
Posted By: Cheech

Re: kick ban - 27/03/03 04:59 AM

i actually started with that approach and i could probably get it to work on an individual basis but my goal is to actually set mode +bbbbbbbb etc.... not
mode +b
mode +b
etc..
but thx for the input i will keep working at it smile
Posted By: theRat

Re: kick ban - 27/03/03 09:17 AM

to aliases:
Code:
massban {
  var %bantype = 2
  var %nicks = $1-
  var %banvar
  var %i = 1
  while ( %i <= $0 ) {
    if ( $ial( $eval( $+($,%i) ,2) ) ) { %banvar = %banvar $mask($ifmatch,%bantype) }
    else { %banvar = %banvar $eval( $+($,%i) ,2) }
    inc %i
  }
  tokenize 32 %banvar
  var %i = 1
  var %thing = $0
  while ( $eval( $+($,%i) , 2 ) ) { 
    var %incc = $iif( $modespl < %thing , $modespl , %thing )
    mode # $+(+,$str(b,%incc)) $eval( $+($,%i,-,$calc( %i - 1 + %incc )) , 2 )
    inc %i %incc
    dec %thing %incc
  }
}
  

to popups:
Code:
massban: massban

if you wan't the kicks too loop trough %nicks variable in the alias...
Posted By: Aubs

Re: kick ban - 27/03/03 02:15 PM

it's all dependant on the server you are on. Some let you set 3 modes at any one time others let you do more.

IRCNet lets 3 so you can do:
+bbb *!*@123.aol.com *!Aubs@* Other!*@*

From the help file (/help If-then-else):

Code:
GiveOps {
  %i = 0
  %nicks = ""
  :nextnick
  inc %i
  if ($snick(#,%i) == $null) { if ($len(%nicks) > 0) mode # +oooo %nicks | halt }
  %nicks = %nicks $snick(#,%i)
  if (4 // %i) { mode # +oooo %nicks | %nicks = "" }
  goto nextnick
}

This is a popup definition which Ops the nicknames which are selected in the current channel nicknames listbox.


Use this as a template to ban people. +o to +b, %nicks = %nicks $snick(#,%i) to %nicks = %nicks $address($snick(#,%i),3) etc

Hope this helps...
© 2020 mIRC Discussion Forums