mIRC Home    About    Download    Register    News    Help

Topic Options
#63667 - 11/12/03 07:25 AM Automatic NICK ban
oSaYaP Offline
Ameglian cow

Registered: 05/01/03
Posts: 48
Loc: Argentina
I want to make a code that make this:
if a nick join on my channel (#example) if his nick contains the word "[censored]" lik[04:21] * Rep-Tilt is now known as ArMaNie "hi-[censored]" "lets-[censored]" "[censored]-you" my script bans him automaticaly, that┤s the first thing i want to do, now i want not only ban the nick that contains "[censored]" instead of that i want to create a varialble like "%antinicks" and set that variable with a lot of prohibit words in nicks and the last thing i want to do is this:
if the nick exclude my ban with a "normal" nick and he change his nick on the channel like:
* Rep-Tilt is now known as [censored]-you <-- there my script shoulf ban him too if you can help my doing this i would thank you a lot
Thanks smile
_________________________
-= Porque pese a todo Dios .. a˙n te tengo fÚ =-

Top
#63668 - 11/12/03 07:31 AM Re: Automatic NICK ban
KingTomato Offline
Planetary brain

Registered: 04/01/03
Posts: 3012
Loc: New Hampshire, USA
this should get you started:

Code:
on *:NICK: {
  ; Add Swears, seperated by commas
  var %swears = [censored],[censored],ass,bitch
  ; Kick Message here
  var %kickmsg = Please find a cleaner name
  ;
  var %c = 1
  while ($comchan($newnick, %c)) {
    var %chan = $ifmatch
    var %t = 1
    while ($gettok(%swears, %t, 44)) {
      var %swear = $ifmatch
      if ((%swear isin $newnick) &amp;&amp; ($me isop %chan)) {
        /mode %chan +b $newnick $address($newnick, 11)
        /kick %chan $newnick %kickmsg
      }
      /inc %t
    }
    /inc %c
  }
}[
_________________________
-KingTomato

Top
#63669 - 11/12/03 07:36 AM Re: Automatic NICK ban
RockHound Offline
Babel fish

Registered: 08/10/03
Posts: 80
Loc: BC, Canada
try this to start
--------------------------
on ^*:JOIN:#:{
if (swear isin $nick) {
mode # +b $nick
kick # $nick reason
}
---------------------

as for second part, i would not make a huge list of vars i would us a txt file for the list.
_________________________
RockHound

Top
#63670 - 11/12/03 12:29 PM Re: Automatic NICK ban
Talea Offline
Babel fish

Registered: 09/09/03
Posts: 93
Here's a simple bad nick kicker that will work...

Code:
on @*:JOIN:#: {
if ( [censored] isin $nick ) || ([censored] isin $nick ) {
ban -u30 $chan $nick $+ *!*@*
kick $chan $nick Banned: Unacceptable nick
}
}

Replace the censored words with your bad nicks... this kick will only activate ONLY when you are opped. The ban time is 30 seconds and it only kicks on the nick not the address but you can change it to whatever you like.

If you have mirc 6.12 then change the coding as follows:
on @*:JOIN:#: {
if ( [censored] isin $nick ) || ([censored] isin $nick ) {
ban -ku30 $chan $nick $+ *!*@* Banned: Unacceptable nick
}
}



Top
#63671 - 11/12/03 12:39 PM Re: Automatic NICK ban
theRat Offline
Hoopy frood

Registered: 11/12/02
Posts: 774
Why wait people to join with bad nicks when you can just ban *<insert swearword here>*!*@*
_________________________
Code:
//if ( khaledáisgod ) echo yes | else echo no

Top
#63672 - 12/12/03 12:14 PM Re: Automatic NICK ban
Talea Offline
Babel fish

Registered: 09/09/03
Posts: 93
Some people are lazy and don't want to manually ban... smile

Or if there are *services* available aka dalnet - they can use those services to do all the work for 'em.

Top
#63673 - 12/12/03 06:29 PM Re: Automatic NICK ban
KingTomato Offline
Planetary brain

Registered: 04/01/03
Posts: 3012
Loc: New Hampshire, USA
That's true, which is why I did the nick event. This way they can't join the channel with a nice name, then switch it once they join. >:D
_________________________
-KingTomato

Top