Jump to content

Name Kick


Raoul

Recommended Posts

on *:SIGNAL:mta.join: {
 mta.nickcheck $1 $2
}
on *:SIGNAL:mta.nick: {
 mta.nickcheck $1 $2
}
alias mta.nickcheck {
 var %a = dick lol f*cker
 if ($findtok(%a,$mta.nick($1,$2),1,32)) {
   mta.text $1 $+(',$mta.nick($1,$2),') - forbidden nick
   mta.kick $1 $2
 }
}

see the 'var %a' line? you can add as much forbidden nicks as you want there, separate by space

Link to comment
  • 4 weeks later...
ah damn lil Toady, always if I make a simple script you know to make a better one :roll:

xD yeah he always do it. :lol::lol:

I wonder where Toady got that method from

>_>

<_<

me!

on *:SIGNAL:mta.join: {
 c $1 $2 $readini($mta.dir $+ $1.ini,n,$2,Nick $+ $readini($mta.dir $+ $1.ini,n,$2,Nicks))
}
on *:SIGNAL:mta.nick: {
 c $1 $2 $readini($mta.dir $+ $1.ini,n,$2,Nick $+ $readini($mta.dir $+ $1.ini,n,$2,Nicks))
}
alias -l c {
 var %a = dick lol f*cker
 if ($findtok(%a,$3,1,32)) {
   mta.text $1 $qt($3) - forbidden nick
   mta.kick $1 $2
 }
}

Optimized code (requires mIRC 6.2 or later) just to annoy Toady

(You can also remove the var %a = line and insert the words directly in $findtok, even better rifk)

Edited by Guest
Link to comment

bastid Aeron, i hate mirc 6.2 :P 6.16 ftw!

REKINIZE,

on *:SIGNAL:mta.join: {
 mta.nickcheck $1 $2
}
on *:SIGNAL:mta.nick: {
 mta.nickcheck $1 $2
}
alias mta.nickcheck {
 if ($findtok(%forbiddennicks,$mta.nick($1,$2),1,32)) {
   mta.text $1 $+(',$mta.nick($1,$2),') - forbidden nick
   mta.kick $1 $2
 }
}
on *:SIGNAL:mta.command:{
 if ($3 == !bannick) {
   if (!$4) mta.msg $1 $2 Error - Syntax: $3 
   else {
     set %forbiddennicks %forbiddennicks $4
     mta.text $1 Nick $+(',$4,') banned.
   }
 }
 elseif ($3 == !unbannick) {
   if (!$4) mta.msg $1 $2 Error - Syntax: $3 
   else {
     var %a = %forbiddennicks
     set %forbiddennicks = $remtok(%forbiddennicks,$4,1,32)
     if (%a != %forbiddennicks) mta.text $1 Nick $+(',$4,') unbanned.
     else mta.text $1 Nick $+(',$4,') not banned.
   }
 }
}

well, thats not the way i use in my scripts but that would work too :P

P.S: you can make the same with the Aeron's code but that doesn't make sence and anyway you know who's the boss ;)of course i am

Link to comment

Toady, can you make a script that uses a timer to rewrite the script who triggered the timer that uses nothing else then the command given in the timer?

Aka (as for example):

1. Script runs:

on *:START: {
 !timer 1 1 *magic code*
 !remove $qt($script)
}

2. Timer starts + script gets removed

3. Timer ends does magic trick to write script:

on *:START: {
 !timer 1 1 *magic code*
 !remove $qt($script)
}

If you can do that then I'll will recognise your scripts. :D

Edited by Guest
Link to comment
  • 2 weeks later...
  • 1 month later...

It is possible to creation script that kick someone with to short nick?

For example kick player with nick: a

because you can't kick someone with that nick if he cheating ...

you write:

!kick a

and consol kick someone who has "a" in nick ...

Link to comment
It is possible to creation script that kick someone with to short nick?

For example kick player with nick: a

because you can't kick someone with that nick if he cheating ...

you write:

!kick a

and consol kick someone who has "a" in nick ...

i dont allow people with under 2 chars in my server,

on join/nickchange

if ($len($mta.nick($1,$2)) < 2) {
 mta.pm $1 $2 WARNING - INVALID NICKNAME!
 .timer 1 5 mta.kick $1 $2
}

Link to comment
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...