mIRC Home    About    Download    Register    News    Help

Print Thread
Joined: Nov 2004
Posts: 16
C
Pikka bird
OP Offline
Pikka bird
C
Joined: Nov 2004
Posts: 16
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

Joined: Jan 2003
Posts: 2,523
Q
Hoopy frood
Offline
Hoopy frood
Q
Joined: Jan 2003
Posts: 2,523
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.


/.timerQ 1 0 echo /.timerQ 1 0 $timer(Q).com
Joined: Nov 2004
Posts: 16
C
Pikka bird
OP Offline
Pikka bird
C
Joined: Nov 2004
Posts: 16
oh thanks, that works exacly i was looking for, respect!


Link Copied to Clipboard