mIRC Home    About    Download    Register    News    Help

Print Thread
Joined: Jul 2005
Posts: 19
E
encom Offline OP
Pikka bird
OP Offline
Pikka bird
E
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,330
Hoopy frood
Offline
Hoopy frood
Joined: Oct 2004
Posts: 8,330
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|)) {


Invision Support
#Invision on irc.irchighway.net
Joined: Sep 2005
Posts: 116
I
Vogon poet
Offline
Vogon poet
I
Joined: Sep 2005
Posts: 116
or
Code:
if (($nick($1,%i) !isop $1) &amp;&amp; ($nick($1,%i) != $me) &amp;&amp; (!(oD|* isin $left($nick,3)))) {

Joined: Oct 2004
Posts: 8,330
Hoopy frood
Offline
Hoopy frood
Joined: Oct 2004
Posts: 8,330
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.


Invision Support
#Invision on irc.irchighway.net
Joined: Sep 2005
Posts: 116
I
Vogon poet
Offline
Vogon poet
I
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,330
Hoopy frood
Offline
Hoopy frood
Joined: Oct 2004
Posts: 8,330
You're still better off with using iswm as shown above. Otherwise, you can have it trigger for:

RoD|mAn


Invision Support
#Invision on irc.irchighway.net
Joined: Dec 2002
Posts: 3,547
S
Hoopy frood
Offline
Hoopy frood
S
Joined: Dec 2002
Posts: 3,547
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.. smile

Code:
alias randk {
  var %i = 1
  while (%i &lt;= $2) {
    if (($nick($1,%i) !isop $1) &amp;&amp; ($nick($1,%i) != $me)) {
      if (oD|* !iswm $nick($1,%i))  kick $1 $nick($chan,%i) ..
    }
    inc %i
  }
}


-Andy

Joined: Oct 2004
Posts: 8,330
Hoopy frood
Offline
Hoopy frood
Joined: Oct 2004
Posts: 8,330
Oh, humbug! I didn't notice he was looping through the nick list. Good catch.


Invision Support
#Invision on irc.irchighway.net

Link Copied to Clipboard