mIRC Home    About    Download    Register    News    Help

Print Thread
#208981 02/02/09 06:48 AM
Joined: Nov 2007
Posts: 117
T
Vogon poet
OP Offline
Vogon poet
T
Joined: Nov 2007
Posts: 117
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

TheWarlock #208984 02/02/09 12:38 PM
Joined: Dec 2002
Posts: 3,547
S
Hoopy frood
Offline
Hoopy frood
S
Joined: Dec 2002
Posts: 3,547
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
Joined: Nov 2007
Posts: 117
T
Vogon poet
OP Offline
Vogon poet
T
Joined: Nov 2007
Posts: 117
thnx for the fast repsonding,thx so much

SladeKraven #209011 03/02/09 05:23 AM
Joined: Nov 2007
Posts: 117
T
Vogon poet
OP Offline
Vogon poet
T
Joined: Nov 2007
Posts: 117
how can i add a kick stuff? thnx

TheWarlock #209015 03/02/09 07:23 AM
Joined: Aug 2004
Posts: 7,252
R
Hoopy frood
Offline
Hoopy frood
R
Joined: Aug 2004
Posts: 7,252
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

TheWarlock #209016 03/02/09 08:01 AM
Joined: Jul 2007
Posts: 1,129
T
Hoopy frood
Offline
Hoopy frood
T
Joined: Jul 2007
Posts: 1,129
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
Joined: Nov 2007
Posts: 117
T
Vogon poet
OP Offline
Vogon poet
T
Joined: Nov 2007
Posts: 117
thnx , so much


Link Copied to Clipboard