mIRC Home    About    Download    Register    News    Help

Print Thread
#147620 21/04/06 10:42 AM
Joined: Jun 2004
Posts: 124
S
sigbin Offline OP
Vogon poet
OP Offline
Vogon poet
S
Joined: Jun 2004
Posts: 124
am anyone help me make a script that when a user joins a channel that has a nick that starts in a CAPITAL letter and ends with two numbers the script will kick the nick... (example of nick: Atest12 or Bpimp69)

help anyone...

#147621 21/04/06 12:23 PM
C
CtrlAltDel
CtrlAltDel
C
Try SpamGuard. It seems to be a popular script on several networks I frequent.

#147622 21/04/06 03:45 PM
S
schaefer31
schaefer31
S
As per the original request:

Change the channel and reason only.

Code:
on @*:JOIN:[color:red]#Channel[/color]:{
  if ($regex($nick,/^[A-Z].++(?<=[\d]{2})$/) {
    hinc -m $+(nick.rejoin.,$chan) $nick
    if ($hget($+(nick.rejoin.,$chan),$nick) > 1) return
    kick $chan $nick [color:red]<reason>[/color]
  }
}

#147623 21/04/06 03:58 PM
Joined: Jun 2004
Posts: 124
S
sigbin Offline OP
Vogon poet
OP Offline
Vogon poet
S
Joined: Jun 2004
Posts: 124
how about if i want it to kick only once? like when it rejoins the user will not be kicked again...

#147624 21/04/06 04:27 PM
S
schaefer31
schaefer31
S
Post edited

#147625 25/04/06 09:22 AM
Joined: Jun 2004
Posts: 124
S
sigbin Offline OP
Vogon poet
OP Offline
Vogon poet
S
Joined: Jun 2004
Posts: 124
Quote:
* /if: invalid format (line 2, script.txt)


i kep on getting this... i dont know coding sory


Link Copied to Clipboard