mIRC Home    About    Download    Register    News    Help

Print Thread
#182601 11/08/07 05:50 PM
Joined: Jun 2004
Posts: 124
S
sigbin Offline OP
Vogon poet
OP Offline
Vogon poet
S
Joined: Jun 2004
Posts: 124
can anyone cahnge this code a bit faster... am $regex? and can it be possible for the code use wildcard? coz im using it now but when users message "youswearme" it cant kick anymore...
Code:
on @*:TEXT:*:#channel: {
  var %swears = swear1,swear2,swear3,swear4
  var %warns = 2
  var %x = $numtok(%swears,44)
  tokenize 32 $strip($1-)
  while (%x) && ($nick isreg $chan) {
    if ($istok($1-,$gettok(%swears,%x,44),32)) {
      inc $+(%,swear.,$wildsite)
      var %n = $($+(%,swear.,$wildsite),2)
      if (%n <= %warns) {
        .kick # $nick This is your $ord(%n) warning for using forbidden language in this channel. $iif(%n = %warns,warning.)"
      }
      elseif (%n > %warns) {
        .ban # $nick 2 Using forbidden language
        unset $+(%,swear.,$wildsite)
      }
    }
    dec %x
  }
}

on *:START: { unset %swear.* }

Joined: Dec 2002
Posts: 3,534
S
Hoopy frood
Offline
Hoopy frood
S
Joined: Dec 2002
Posts: 3,534
I replied to the PM you sent me about this. smile

Joined: Jun 2004
Posts: 124
S
sigbin Offline OP
Vogon poet
OP Offline
Vogon poet
S
Joined: Jun 2004
Posts: 124
this is a different script... this is what my friend uses... but this kind of script im looking for... am SladeKraven can you make that script above one with out the onstart?


Link Copied to Clipboard