mIRC Home    About    Download    Register    News    Help

Print Thread
#47909 07/09/03 08:47 PM
Joined: Mar 2003
Posts: 27
Z
zorin Offline OP
Ameglian cow
OP Offline
Ameglian cow
Z
Joined: Mar 2003
Posts: 27
If someone says a word more than once it such a long time (30 seconds) Then that person would be kicked / banned..
Now, how should i do that? confused

#47910 07/09/03 08:54 PM
Joined: Dec 2002
Posts: 3,547
S
Hoopy frood
Offline
Hoopy frood
S
Joined: Dec 2002
Posts: 3,547
I hope I understood correctly, you want something if someone says a word more than once, within 30 seconds it will kick ban them?
Code:
on 1:TEXT:*:#:{
  if ($me ! isop #) return 
  if ($nick isop #) return
  else {
    var %x = $strip($1-)
    inc -u30 %i. [ $+ [ $hash($nick $chan %x,32) ] ]
    if (%i. [ $+ [ $hash($nick $chan %x,32) ] ] == 5) {
      ban -u30 # $nick 2
      kick # $nick  Your kick message here.
    }
  }
}

#47911 07/09/03 09:13 PM
Joined: Mar 2003
Posts: 27
Z
zorin Offline OP
Ameglian cow
OP Offline
Ameglian cow
Z
Joined: Mar 2003
Posts: 27
ye, that right, tnx laugh

#47912 07/09/03 10:22 PM
Joined: Jan 2003
Posts: 150
J
Vogon poet
Offline
Vogon poet
J
Joined: Jan 2003
Posts: 150
for mIRC v6.1
Code:
on @1:TEXT:*:#:{
  if ($nick !isop #) { 
    var %x = $strip($1-)
    inc -u30 %i. [ $+ [ $hash($nick $chan %x,32) ] ]
    if (%i. [ $+ [ $hash($nick $chan %x,32) ] ] == 5) {
      ban -ku30 # $nick 2 Your kick message here.
    }
  }
}


Go ahead, jump. 100,000 lemmings can't be wrong.
#47913 07/09/03 11:38 PM
Joined: Dec 2002
Posts: 3,547
S
Hoopy frood
Offline
Hoopy frood
S
Joined: Dec 2002
Posts: 3,547
Thanks for that dude, I haven't actually got round to reading mIRC 6.1 help file yet, I am still using 6.03.


Link Copied to Clipboard