I've created a script, which can be triggered from within a channel. It does a query on mysql, and dumps the results back to the channel where it was requested. The problem is that it can take up to 3 mins before mysql output the results. Meanwhile the eggdrop times out and restarts (on Quakenet).
Is there a way to fix this? I can't make the query go faster (large database), so is there a way to let the tcl standby until the query is done? (so other commands can be used in the meantime).
the proper way to fix this is to fix your database/queries - it shouldn't take 3 minutes to fetch data, never; use proper table indexing and refer to mysql docs on how to optimize that stuff
as last resort you can use the Thread package and rewrite your script to execute db queries in a separate thread, while allowing all normal processing to go on; however, you will need to recompile your TCL libs with --enable-threads
the Thread package is not a built-in, neither with 8.1 nor with 8.4; you have to obtain it separately (check out sourceforge's tcl project), compile and install it under your tcl distribution