Want to share my experience with color codes. this array method makes it easy for you to write your script and makes it more clean. array set colors { blue \0032 green \0033 red \0034 purple \0036 orange \0037 yellow \0038 lightgreen \0039 lightblue \00312 pink \00313 grey \00314 lightgrey \00315 no...
When I see the code Sir_Fz pasted it answer all my answers.
I'm probably not that good to ask questions!
Thanks for explanation speechles..
I asked how the timer could be executed.. In the answer I was hoping to get this.
I appreciate your guys help, I'm sorry for my bad ass questions
proc notice:search {nick uhost handle text {dest ""}} { global dbhandling sqltable chan2 sqltable2 if {$dest == ""} {set dest $::botnick} # check if nick is on #chan if {[onchan $nick $kanal2]} { set site [lindex [split $text] 1] # mysql... set result [mysqlsel $dbhandling "...
I thought it was necessary to use two foreach. Example: timer 10 [list mysqlexec $dbhandling "DELETE FROM $sqltable2 WHERE url='$url'" mysqlexec $dbhandling "INSERT INTO $sqltable (site, url, nick) VALUES ('$site', '$url', '$nick')"] Will not work because timer can't do both(I he...
Hrrm, looks like it won't work like it should It only insert into column 'site' and leaves column 'url' blank? # /notice bot search proc notice:search {nick uhost handle text {dest ""}} { global dbhandling sqltable chan2 sqltable2 if {$dest == ""} {set dest $::botnick} # check if...
Thanks a lot!
Next: I have been reading a little about event scheduler for MySQL..
Because I want a line from the table2 to move back to table1 after 12hours.
Is this something TCL handle or is it MySQL? I'm not sure