mIRC Home    About    Download    Register    News    Help

Print Thread
noticing nick change problem #157254 23/08/06 07:21 PM
Joined: Jun 2004
Posts: 133
S
state Offline OP
Vogon poet
OP Offline
Vogon poet
S
Joined: Jun 2004
Posts: 133
Hi, i have a script that kicks a nick that enters the channel just for hun after 10seconds unless the password is enterd. but i added some code just in case they changed nick,

Code:
on *:NICK:{
  if (($($+(%,password.not.entered.by.,$nick),2)) && ($newnick ison #fukliam)) {
    msg #fukliam $newnick Mahahahahahaha trying to evade!
    ban -k #fukliam $newnick 5 newnick.
    .timerban 1 3 mode #fukliam -b $address($newnick,5)
    unset $+(%,password.not.entered.by.,$nick)
  }
}



not sure if you need the rest of code but can any one see ne thing wrong here?

Re: noticing nick change problem #157255 23/08/06 07:36 PM
Joined: Mar 2005
Posts: 420
X
xDaeMoN Offline
Fjord artisan
Offline
Fjord artisan
X
Joined: Mar 2005
Posts: 420
I don't see any problem, unless you have another On NIck event that is above this

Here's a slight revision

Code:
 on *:NICK: {
  if (($($+(%,password.not.entered.by.,$nick),2)) && ($newnick ison #fukliam)) {
    msg $v2 $newnick Mahahahahahaha trying to evade!
    ban -ku3 $v2 $newnick 5 newnick.
    unset $+(%,password.not.entered.by.,$nick)
  }
} 


If you have a plastic floor runner over your tiles, then you're one Hella Pinoy!