|
Joined: Sep 2004
Posts: 4
Self-satisified door
|
OP
Self-satisified door
Joined: Sep 2004
Posts: 4 |
right now, i am using ban { /moderun # + b $1- } to ban people, that way i can easily ban several people at once if needed, but this bans by the mask nick!*@*. is there anyway so it would ban *!*user@host instead, but so it can still ban multiple people at once?
|
|
|
|
Joined: Apr 2005
Posts: 53
Babel fish
|
Babel fish
Joined: Apr 2005
Posts: 53 |
You can ban them only if they have the same username and/or host that is specified in ban. else you have to set ban for each person
Last edited by Abuser__; 12/08/05 11:31 AM.
|
|
|
|
Joined: Aug 2005
Posts: 128
Vogon poet
|
Vogon poet
Joined: Aug 2005
Posts: 128 |
ban {
if ($isid) return
var %i = 1
if (!$chan) return
while ($gettok($1-,%i,32)) {
var %app = $null
while (%i <= $modespl) {
%n = $gettok($1-,%i,32)
if ($address(%n,2)) %n = $ifmatch
%app = $addtok(%app,%n,32)
inc %i
}
mode $chan $+(+,$str(b,$modespl)) %app
}
}
I hope it works, cos I didn't test it
|
|
|
|
Joined: Sep 2004
Posts: 4
Self-satisified door
|
OP
Self-satisified door
Joined: Sep 2004
Posts: 4 |
it does work. thank you. i think i love you.
|
|
|
|
Joined: Aug 2005
Posts: 128
Vogon poet
|
Vogon poet
Joined: Aug 2005
Posts: 128 |
No problem.
|
|
|
|
Joined: Jun 2005
Posts: 30
Ameglian cow
|
Ameglian cow
Joined: Jun 2005
Posts: 30 |
Jesus christ. You guys make everything to complicated.
alias ban {
/mode $chan +bbbbbbbbbbbbbbbbbbbbb $address($1,2) $address($2,2) $address($3,2) $address($4,2) $address($5,2) $address($6,2) $address($7,2) $address($8,2) $address($9,2) $address($10,2) $address($11,2) $address($12,2) $address($13,2) $address($14,2) $address($15,2) $address($16,2) $address($17,2) $address($18,2) $address($19,2) $address($20,2) $address($21,2) $address($22,2)
Yea, maybe it is a little long, but it works and dosn't require anything quite as fancy as fancy @$$ above me.
|
|
|
|
Joined: Apr 2003
Posts: 701
Hoopy frood
|
Hoopy frood
Joined: Apr 2003
Posts: 701 |
Too bad most networks have $modespl set to 3 or 4 so your code doesn't work there... If you want more than $modespl modes set, you need multiple /mode commands to the server.
Oh, I haven't looked at the solutions given above, so if you find a better way to do it be my guest, just make sure it works...
|
|
|
|
Joined: Oct 2004
Posts: 8,330
Hoopy frood
|
Hoopy frood
Joined: Oct 2004
Posts: 8,330 |
Jesus christ. You guys make everything to complicated.
alias ban {
/mode $chan +bbbbbbbbbbbbbbbbbbbbb $address($1,2) $address($2,2) $address($3,2) $address($4,2) $address($5,2) $address($6,2) $address($7,2) $address($8,2) $address($9,2) $address($10,2) $address($11,2) $address($12,2) $address($13,2) $address($14,2) $address($15,2) $address($16,2) $address($17,2) $address($18,2) $address($19,2) $address($20,2) $address($21,2) $address($22,2)
Yea, maybe it is a little long, but it works and dosn't require anything quite as fancy as fancy @$$ above me. If you want to be here and help people with their scripts, that is great. However, this is not a forum for flaming or for making people feel bad. Change your attitude and offer help rather than starting flames or you're not likely to remain on the forum.
Invision Support #Invision on irc.irchighway.net
|
|
|
|
Joined: Sep 2004
Posts: 4
Self-satisified door
|
OP
Self-satisified door
Joined: Sep 2004
Posts: 4 |
one more question here. i was wondering if there was any way to make this so i can still pass arguments such as -u60 through or not?
|
|
|
|
|