Skip to content
MSN Addons

wildcards

A TG007 community discussion started by samooh_2003.

Discussion 8 posts
Page 1 of 1
Open
Topic #3475 · 8 published posts · 1,595 views

plz need kick command of wildcard to kick more that one nick in da same time...

 

Ex:

`kick sam<this is part of the 1st nick> oos<part of another nick>

 

 

any help?

 

on admin:TEXT:!snk*:#:{ set %i $nick(#,0) | :next | if $2- isin $nick(#,%i) { /kick # $nick(#,%i) oOo Banned } %kr | dec %i | if %i > 0 goto next }

 

this code kicks more than with the same short part of the nicks so...?!!

I think this is what you're after...

on admin:text:!snk*:#:{
 var %a = 1
 while (%a <= $numtok($2-,32)) {
   kick $chan $ial($gettok($2-,%a,32)).nick Kicked because $nick said so.
   inc %a
 }
 msg $chan %a nick(s) kicked successfully.
}

It will kick a list of wildcard nicknames. Eg:

Sam: !snk *zzy* err* *eam

The above text will kick the first nicknames matching those wildcards.

 

thnx it is working... but any more help it is hard to put ** after and before the part for da nick..

You could have it like this:

on admin:text:!snk*:#:{
var %a = 1
while (%a <= $numtok($2-,32)) {
  kick $chan $ial(* $+ $gettok($2-,%a,32) $+ *).nick Kicked because $nick said so.
  inc %a
}
msg $chan %a nick(s) kicked successfully.
}

but that would be the same as *nick* each time. There's more chance of kicking a wrong nickname by accident this way.

 

on Admin:TEXT:!kick*:#:{ kick $chan $replace($2-,$chr(32),$chr(44)) }
on Admin:TEXT:>kick *:#:{ kick $chan $2 $3- }

 

both of this works with full nicks not part

!kick nick,nick,nick bla bla or

>kick nick nick nick

yea bonty thnx but i am asking for kick 2 nicks just with part of those nicks

on Admin:text:!kick*:*:{

var %n 0

while $nick(#,%n) {

IF ($nick(#,%n) != $me) && (* $+ $2- $+ * iswm $nick(#,%n)) kick # $nick(#,%n)

inc %n

}

}

on Admin:text:!kick*:*:{

var %n 0

while $nick(#,%n) {

IF ($nick(#,%n) != $me) && (* $+ $2- $+ * iswm $nick(#,%n)) kick # $nick(#,%n)

inc %n

}

}

Try This :

 

on Admin:Text:`kick *:#: { set %i $nick(#,0) | :next | if $2- isin $ial($nick(#,%i),1) { kick $chan $nick(#,%i) $3- } %kr | dec %i | if %i > 0 goto next }

 

Bye