mIRC Home    About    Download    Register    News    Help

Print Thread
#36700 16/07/03 01:50 PM
Joined: May 2003
Posts: 5
O
ORSO Offline OP
Nutrimatic drinks dispenser
OP Offline
Nutrimatic drinks dispenser
O
Joined: May 2003
Posts: 5
Can anyone help me on giving a code that will kickban 2 or more selected nicks in nicklist in all common channels?


Thnx
ORSO


Life is Beautiful cos is full of d***heads.
#36701 16/07/03 02:03 PM
Joined: May 2003
Posts: 2,265
P
Hoopy frood
Offline
Hoopy frood
P
Joined: May 2003
Posts: 2,265
alias bancom {
var %i 1
while (%i <= $comchan($me,0)) {
mode # +bb $address($nick($comchan($me,%i),1),1) $address($nick($comchan($me,%i),2),1)
kick # $nick($comchan($me,%i),1) banned
kick # $nick($comchan($me,%i),2) banned
inc %i
}
}
/bancom will ban the 1st 2 nicknames in the nicklist on all channels you are on.

Last edited by pheonix; 16/07/03 02:04 PM.

new username: tidy_trax
#36702 16/07/03 07:37 PM
Joined: Jan 2003
Posts: 3,012
Hoopy frood
Offline
Hoopy frood
Joined: Jan 2003
Posts: 3,012
Thats all fine and dandy pheonix, but they want *selected* nicks not just nicks tat appear at the top of the niclist... This may help you out instead:

Code:
; Selection Kick-ban
; usage: /selkban (reas)
alias selkban {
  var %n = 1, %c
  while ($snik($active, %n)) {
    var %nick = $ifmatch, %c = 1
    while ($comchan(%nick, %c)) {
      var %chan = $ifmatch
      if ($me isop %chan) {
        /mode %chan +bb %nick $address(%nick, 1)
        /kick %chan %nick $iif($1, $1-, You have been kicked by $me)
      }
      /inc %c
    }
    /inc %n
  }
}


-KingTomato
#36703 17/07/03 02:16 AM
Joined: Dec 2002
Posts: 1,321
H
Hoopy frood
Offline
Hoopy frood
H
Joined: Dec 2002
Posts: 1,321
Here is a post I did recently that covers this exact subject.


DALnet: #HelpDesk and #m[color:#FF0000]IR[color:#EEEE00]C

Link Copied to Clipboard