mIRC Home    About    Download    Register    News    Help

Print Thread
Automatic NICK ban #63667
11/12/03 07:25 AM
11/12/03 07:25 AM
Joined: Jan 2003
Posts: 48
Argentina
O
oSaYaP Offline OP
Ameglian cow
oSaYaP  Offline OP
Ameglian cow
O

Joined: Jan 2003
Posts: 48
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Ú =-
Re: Automatic NICK ban #63668
11/12/03 07:31 AM
11/12/03 07:31 AM
Joined: Jan 2003
Posts: 3,012
New Hampshire, USA
KingTomato Offline
Hoopy frood
KingTomato  Offline
Hoopy frood

Joined: Jan 2003
Posts: 3,012
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
Re: Automatic NICK ban #63669
11/12/03 07:36 AM
11/12/03 07:36 AM
Joined: Oct 2003
Posts: 80
BC, Canada
R
RockHound Offline
Babel fish
RockHound  Offline
Babel fish
R

Joined: Oct 2003
Posts: 80
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
Re: Automatic NICK ban #63670
11/12/03 12:29 PM
11/12/03 12:29 PM
Joined: Sep 2003
Posts: 93
T
Talea Offline
Babel fish
Talea  Offline
Babel fish
T

Joined: Sep 2003
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
}
}



Re: Automatic NICK ban #63671
11/12/03 12:39 PM
11/12/03 12:39 PM
Joined: Dec 2002
Posts: 774
T
theRat Offline
Hoopy frood
theRat  Offline
Hoopy frood
T

Joined: Dec 2002
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
Re: Automatic NICK ban #63672
12/12/03 12:14 PM
12/12/03 12:14 PM
Joined: Sep 2003
Posts: 93
T
Talea Offline
Babel fish
Talea  Offline
Babel fish
T

Joined: Sep 2003
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.

Re: Automatic NICK ban #63673
12/12/03 06:29 PM
12/12/03 06:29 PM
Joined: Jan 2003
Posts: 3,012
New Hampshire, USA
KingTomato Offline
Hoopy frood
KingTomato  Offline
Hoopy frood

Joined: Jan 2003
Posts: 3,012
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