| View previous topic :: View next topic |
| Author |
Message |
Elfriede Halfop
Joined: 07 Aug 2007 Posts: 67
|
Posted: Fri Sep 05, 2008 4:00 am Post subject: Filter out dupe msg's |
|
|
Hi everbody
I've the following script from this forum
| Code: |
set chan1 "#chan1"
set chan2 "#chan2"
bind pubm - * my:echo
proc my:echo {n u h c t} {
global chan1 chan2
set chan1 [string tolower $chan1]
set c [string tolower $c]
set t [stripcodes abcgru $t]
if {$c == $chan1} {
putfast "PRIVMSG $chan2 $t"
}
}
|
Lot of Information is collected in chan1 and my bot is echoing everything
to chan2. Many text is dupe.
Whant i need now:
Can someone help me to filter out dupe-text - preferable only within ~ 5 Minutes; so that everything that has been echoed in this time, will not be echo'd twice or more times ?
Hopefully somenone can help. Thx in advance! |
|
| Back to top |
|
 |
TCL_no_TK Owner

Joined: 25 Aug 2006 Posts: 509 Location: England, Yorkshire
|
|
| Back to top |
|
 |
|