mIRC Home    About    Download    Register    News    Help

Print Thread
#212926 09/06/09 04:40 PM
Joined: May 2009
Posts: 28
B
Ameglian cow
OP Offline
Ameglian cow
B
Joined: May 2009
Posts: 28
how to write a command for banning bad ident?

Babystone #212928 09/06/09 06:15 PM
Joined: Mar 2004
Posts: 359
L
Fjord artisan
Offline
Fjord artisan
L
Joined: Mar 2004
Posts: 359
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*@*

LostServ #212937 10/06/09 09:18 AM
Joined: May 2009
Posts: 28
B
Ameglian cow
OP Offline
Ameglian cow
B
Joined: May 2009
Posts: 28
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*@*

Babystone #212942 10/06/09 02:05 PM
Joined: Dec 2008
Posts: 1,515
Hoopy frood
Offline
Hoopy frood
Joined: Dec 2008
Posts: 1,515
or with the /mode $chan +b nick!*@* or using the /ban command.

more help for these use : /help /mode or /help /ban


Need Online mIRC help or an mIRC Scripting Freelancer? -> https://irc.chathub.org <-
westor #212949 11/06/09 02:56 AM
Joined: Aug 2004
Posts: 7,252
R
Hoopy frood
Offline
Hoopy frood
R
Joined: Aug 2004
Posts: 7,252
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.

Babystone #212950 11/06/09 03:24 AM
Joined: Mar 2004
Posts: 359
L
Fjord artisan
Offline
Fjord artisan
L
Joined: Mar 2004
Posts: 359
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.
  }
}


Link Copied to Clipboard