|
|
Joined: Jul 2005
Posts: 19
Pikka bird
|
OP
Pikka bird
Joined: Jul 2005
Posts: 19 |
alias randk { var %i = 1 while (%i <= $2) { if (($nick($1,%i) !isop $1) && ($nick($1,%i) != $me)) { kick $1 $nick($1,%i) $3- } inc %i } }
----
This is the script, can please anyone set a protect on oD| in it? thanks~!
|
|
|
|
Joined: Oct 2004
Posts: 8,061
Hoopy frood
|
Hoopy frood
Joined: Oct 2004
Posts: 8,061 |
Change the IF line to this. Note that there were better ways to handle this script that were given in the other thread.
if (($nick($1,%i) !isop $1) && ($nick($1,%i) != $me) && ($left($nick,3) != oD|)) {
|
|
|
|
Joined: Sep 2005
Posts: 116
Vogon poet
|
Vogon poet
Joined: Sep 2005
Posts: 116 |
or if (($nick($1,%i) !isop $1) && ($nick($1,%i) != $me) && (!(oD|* isin $left($nick,3)))) {
|
|
|
|
Joined: Oct 2004
Posts: 8,061
Hoopy frood
|
Hoopy frood
Joined: Oct 2004
Posts: 8,061 |
Not quite...
Doing it your way,
(!(oD|* isin $left($nick,3)))
should be:
(oD|* !iswm $nick)
Not really sure why I didn't do it with iswm, but either way works just fine.
Just so you understand, you need to use iswm for wildcards. And !iswm means it doesn't match. No need to throw parentheses around it like you did with a ! on the outside of it all.
|
|
|
|
Joined: Sep 2005
Posts: 116
Vogon poet
|
Vogon poet
Joined: Sep 2005
Posts: 116 |
i didnt know if the ! would also work on is.. compersations
but yeh your rght about the wildcat it should be (oD| isin $nick whitout any wildcats
your a 1337 scriptor Riamus lol
|
|
|
|
Joined: Oct 2004
Posts: 8,061
Hoopy frood
|
Hoopy frood
Joined: Oct 2004
Posts: 8,061 |
You're still better off with using iswm as shown above. Otherwise, you can have it trigger for:
RoD|mAn
|
|
|
|
Joined: Dec 2002
Posts: 3,534
Hoopy frood
|
Hoopy frood
Joined: Dec 2002
Posts: 3,534 |
That wouldn't work dude, you'd need if (oD|* !iswm $nick($1,%i)) but I know it was a silly mistake you forgot about.. 
alias randk {
var %i = 1
while (%i <= $2) {
if (($nick($1,%i) !isop $1) && ($nick($1,%i) != $me)) {
if (oD|* !iswm $nick($1,%i)) kick $1 $nick($chan,%i) ..
}
inc %i
}
}
-Andy
|
|
|
|
Joined: Oct 2004
Posts: 8,061
Hoopy frood
|
Hoopy frood
Joined: Oct 2004
Posts: 8,061 |
Oh, humbug! I didn't notice he was looping through the nick list. Good catch.
|
|
|
|
|
|