mIRC Home    About    Download    Register    News    Help

Print Thread
#127316 12/08/05 07:14 AM
Joined: Sep 2004
Posts: 4
G
Self-satisified door
OP Offline
Self-satisified door
G
Joined: Sep 2004
Posts: 4
right now, i am using

Code:
 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?

#127317 12/08/05 11:30 AM
Joined: Apr 2005
Posts: 53
A
Babel fish
Offline
Babel fish
A
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 smile

Last edited by Abuser__; 12/08/05 11:31 AM.
#127318 13/08/05 01:20 AM
Joined: Aug 2005
Posts: 128
S
Vogon poet
Offline
Vogon poet
S
Joined: Aug 2005
Posts: 128
Code:
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

#127319 13/08/05 01:37 AM
Joined: Sep 2004
Posts: 4
G
Self-satisified door
OP Offline
Self-satisified door
G
Joined: Sep 2004
Posts: 4
it does work. thank you. i think i love you.

#127320 13/08/05 11:54 AM
Joined: Aug 2005
Posts: 128
S
Vogon poet
Offline
Vogon poet
S
Joined: Aug 2005
Posts: 128
laugh No problem.

#127321 15/08/05 07:22 AM
Joined: Jun 2005
Posts: 30
_
Ameglian cow
Offline
Ameglian cow
_
Joined: Jun 2005
Posts: 30
Jesus christ. You guys make everything to complicated.
Code:
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.

#127322 15/08/05 09:30 AM
Joined: Apr 2003
Posts: 701
K
Hoopy frood
Offline
Hoopy frood
K
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...

#127323 15/08/05 01:00 PM
Joined: Oct 2004
Posts: 8,330
Hoopy frood
Offline
Hoopy frood
Joined: Oct 2004
Posts: 8,330
Quote:
Jesus christ. You guys make everything to complicated.
Code:
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
#127324 15/08/05 10:37 PM
Joined: Sep 2004
Posts: 4
G
Self-satisified door
OP Offline
Self-satisified door
G
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?


Link Copied to Clipboard