mIRC Home    About    Download    Register    News    Help

Print Thread
#208981 02/02/09 06:48 AM
T
TheWarlock
TheWarlock
T
alias f {
var %i = 1
while (%i <= $snick(#,0)) {
set %ban $addtok(%ban,$snick(#,%i),32)
mode # $chr(43) $+ $str(b,%i) %ban
inc %i
}
}

* VerDuGo sets mode: +bbbbb CHaN!*@* MeMO!*@* NiCK!*@* OPeR!*@* PRoXY!*@*

i want do that , because the normal ban
shows me like

erDuGo sets mode: +b CHaN!*@*
* VerDuGo sets mode: +b *!*@*MeMO
* VerDuGo sets mode: +b *!*@*NiCK
* VerDuGo sets mode: +b *!*@*OPeR
* VerDuGo sets mode: +b *!*@*PRoXY
* VerDuGo sets mode: +b *!*@*VHoST

any help please ,thnx so much

#208984 02/02/09 12:38 PM
Joined: Dec 2002
Posts: 3,534
S
Hoopy frood
Offline
Hoopy frood
S
Joined: Dec 2002
Posts: 3,534
Code:
alias f {
  var %i = 1
  while (%i <= $snick(#,0)) {
    set -u %ban $addtok(%ban,$+($snick(#,%i),!*@*),32)
    inc %i
  }
  if ($me isop $chan)  mode # $chr(43) $+ $str(b,%i) %ban
}

SladeKraven #208988 02/02/09 04:46 PM
T
TheWarlock
TheWarlock
T
thnx for the fast repsonding,thx so much

SladeKraven #209011 03/02/09 05:23 AM
T
TheWarlock
TheWarlock
T
how can i add a kick stuff? thnx

#209015 03/02/09 07:23 AM
Joined: Aug 2004
Posts: 7,168
R
Hoopy frood
Offline
Hoopy frood
R
Joined: Aug 2004
Posts: 7,168
Kicks have to be issued one at a time, unlike the ban mode, which can be issued for several nicks at once.

You can either use the /kick command, or the /ban command with the -k switch.

In either case, you will lose out on the ability to assign the ban to multiple nicks at the same time, which is what it looked like you were wanting from your original post

#209016 03/02/09 08:01 AM
Joined: Jul 2007
Posts: 1,124
T
Hoopy frood
Offline
Hoopy frood
T
Joined: Jul 2007
Posts: 1,124
This might do it:

Code:
alias f {
  var %i = 1
  while (%i <= $snick(#,0)) {
    set -u %ban $addtok(%ban,$+($snick(#,%i),!*@*),32)
    inc %i
  }
  if ($me isop $chan)  {
    mode # $chr(43) $+ $str(b,%i) %ban
    var %i $snick(#,0) | :next | if $snick(#,%i) != $me kick # $snick(#,%i) | dec %i | if %i > 0 goto next
  }
}

RusselB #209046 03/02/09 04:16 PM
T
TheWarlock
TheWarlock
T
thnx , so much


Link Copied to Clipboard