mIRC Homepage
Posted By: Babystone bad ident - 09/06/09 04:40 PM
how to write a command for banning bad ident?
Posted By: LostServ Re: bad ident - 09/06/09 06:15 PM
Not sure exactly what you mean, be a bit more specific how you want to ban it. As for one quick command if you wanted to ban the word hi anywhere in an ident you would do: /mode #channel +b *!*hi*@*
Posted By: Babystone Re: bad ident - 10/06/09 09:18 AM
on join with a bad ident how can we ban them immediately?

Originally Posted By: LostServ
Not sure exactly what you mean, be a bit more specific how you want to ban it. As for one quick command if you wanted to ban the word hi anywhere in an ident you would do: /mode #channel +b *!*hi*@*
Posted By: westor Re: bad ident - 10/06/09 02:05 PM
or with the /mode $chan +b nick!*@* or using the /ban command.

more help for these use : /help /mode or /help /ban
Posted By: RusselB Re: bad ident - 11/06/09 02:56 AM
That would ban the nick, irrelevant as to what the ident or the host was, which is not what the OP wants, per the subject line.
Posted By: LostServ Re: bad ident - 11/06/09 03:24 AM
This should work, don't forget to change the channel you want it to work in in the first line of the on join event. You can use multiple channels by seperating them with a comma. Also don't forget to change the words it will check for in the %x variable.

Code:
on *:join:#channel: {
  ; Store a list of words to look for.
  var %x = jerk punk loser dork
  ; If their ident is in the above list, then:
  if ($gettok($remove($address($nick,0),*!),1,64) isin %x) {
    ; Set a wildcard ban on that ident in the form of *word*
    mode $chan +b $+(*!*,$ifmatch,*@*)
    ; Kick them out..
    kick $chan $nick Please change your ident to rejoin.
  }
}
© mIRC Discussion Forums