This is the new home of the egghelp.org community forum.
All data has been migrated (including user logins/passwords) to a new phpBB version.


For more information, see this announcement post. Click the X in the top right-corner of this box to dismiss this message.

Filter out dupe msg's

Help for those learning Tcl or writing their own scripts.
Post Reply
E
Elfriede
Halfop
Posts: 67
Joined: Tue Aug 07, 2007 4:21 am

Filter out dupe msg's

Post by Elfriede »

Hi everbody :)

I've the following script from this forum :)

Code: Select all

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!
User avatar
TCL_no_TK
Owner
Posts: 509
Joined: Fri Aug 25, 2006 7:05 pm
Location: England, Yorkshire

Post by TCL_no_TK »

I had a simlar problem to this in the past. You might be able to adapt it to help your script as well http://forum.egghelp.org/viewtopic.php? ... highlight= :)
Post Reply