mIRC Home    About    Download    Register    News    Help

Print Thread
#36700 16/07/03 01:50 PM
O
ORSO
ORSO
O
Can anyone help me on giving a code that will kickban 2 or more selected nicks in nicklist in all common channels?


Thnx
ORSO

#36701 16/07/03 02:03 PM
P
pheonix
pheonix
P
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.
#36702 16/07/03 07:37 PM
Joined: Jan 2003
Posts: 2,973
K
Hoopy frood
Offline
Hoopy frood
K
Joined: Jan 2003
Posts: 2,973
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
  }
}

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


Link Copied to Clipboard