mIRC Homepage
Posted By: state noticing nick change problem - 23/08/06 07:21 PM
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?
Posted By: xDaeMoN Re: noticing nick change problem - 23/08/06 07:36 PM
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)
  }
} 
© mIRC Discussion Forums