mIRC Homepage
Posted By: cysleeck Duplicate messages remover (halt) - 02/03/05 02:08 PM
I have this situation. Some bots are repeating same thing. Can anyone help mi with code snippet, that halt these duplicites messages?

for example:
(14:35:18) (slut) i own ya
(14:35:18) (screw) i own ya
(14:35:18) (screw) me too
(14:35:19) (holly) me too
(14:35:20) (holly) i own ya
(14:35:20) (slut) me too
(14:35:20) (laagy) i own ya
(14:35:21) (stupid) me too
(14:35:28) (llamazzzz) stupid flooders!

and i want to see in mirc this:

(14:35:18) (slut) i own ya
(14:35:18) (screw) me too
(14:35:21) (llamazzzz) stupid flooders!

setting variable for a short time (cca 60sec, then unset) with $1- cant be, because there are these duplicated messages mixed (there are not duplicited messages at the same time and after that another dupicates)


i hope someone understand, what i need and can help me. thanks
Posted By: qwerty Re: Duplicate messages remover (halt) - 02/03/05 03:30 PM
Try this:
Code:
on ^*:text:*:#:{
  var %text = $md5(# $cid $lower($strip($1-)))
  if $hget(repeats,%text) { halt }
  hadd -mu[color:red]60[/color] repeats %text 1
}

This ignores messages repeated within 60 seconds.
Posted By: cysleeck Re: Duplicate messages remover (halt) - 02/03/05 03:39 PM
oh thanks, that works exacly i was looking for, respect!
© mIRC Discussion Forums