mIRC Home    About    Download    Register    News    Help

Print Thread
kick ban #17022 27/03/03 01:14 AM
Joined: Dec 2002
Posts: 332
C
Cheech Offline OP
Fjord artisan
OP Offline
Fjord artisan
C
Joined: Dec 2002
Posts: 332
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

Re: kick ban #17023 27/03/03 01:40 AM
Joined: Feb 2003
Posts: 31
S
Syperus Offline
Ameglian cow
Offline
Ameglian cow
S
Joined: Feb 2003
Posts: 31
$nick(#,0) will give you the total number of ppl in the chat room.. set the total number in a variable

Re: kick ban #17024 27/03/03 01:43 AM
Joined: Dec 2002
Posts: 332
C
Cheech Offline OP
Fjord artisan
OP Offline
Fjord artisan
C
Joined: Dec 2002
Posts: 332
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 ?

Re: kick ban #17025 27/03/03 01:48 AM
Joined: Feb 2003
Posts: 31
S
Syperus Offline
Ameglian cow
Offline
Ameglian cow
S
Joined: Feb 2003
Posts: 31
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

Re: kick ban #17026 27/03/03 01:49 AM
Joined: Dec 2002
Posts: 332
C
Cheech Offline OP
Fjord artisan
OP Offline
Fjord artisan
C
Joined: Dec 2002
Posts: 332
ok thx for tryin smile

Re: kick ban #17027 27/03/03 01:51 AM
Joined: Feb 2003
Posts: 31
S
Syperus Offline
Ameglian cow
Offline
Ameglian cow
S
Joined: Feb 2003
Posts: 31
np

Re: kick ban #17028 27/03/03 02:30 AM
Joined: Feb 2003
Posts: 83
L
LO_KEY Offline
Babel fish
Offline
Babel fish
L
Joined: Feb 2003
Posts: 83
$snick($chan,0) will return how many nicks are selected in a nicklist on $chan

loothru it to kik who there is to kik


any help would make me happy
Re: kick ban #17029 27/03/03 04:59 AM
Joined: Dec 2002
Posts: 332
C
Cheech Offline OP
Fjord artisan
OP Offline
Fjord artisan
C
Joined: Dec 2002
Posts: 332
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

Re: kick ban #17030 27/03/03 09:17 AM
Joined: Dec 2002
Posts: 774
T
theRat Offline
Hoopy frood
Offline
Hoopy frood
T
Joined: Dec 2002
Posts: 774
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...


Code:
//if ( khaled isgod ) echo yes | else echo no
Re: kick ban #17031 27/03/03 02:15 PM
Joined: Dec 2002
Posts: 143
A
Aubs Offline
Vogon poet
Offline
Vogon poet
A
Joined: Dec 2002
Posts: 143
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...


Aubs.
cool