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.

command queque

Help for those learning Tcl or writing their own scripts.
Post Reply
r
roughnecks
Voice
Posts: 33
Joined: Sun Sep 14, 2008 9:33 am
Location: Italy

command queque

Post by roughnecks »

Hi, i have a script that gives info about my bot in this way:

Code: Select all

putquick "PRIVMSG $nick : Aiuto sui comandi del bot "
The problem is that if two or more users ask for the help typing the relative command, the bot gives the info first to one user and then awaits for the script to end before giving the same info to the second user, creating a queque.

I.E., if there are many people onchan this is quite annoying for one to get help.

Is there anything to try, maybe in a different way of doing it ?

Thanks :wink:

PS i'm not so smart with tcl
n
nml375
Revered One
Posts: 2860
Joined: Fri Aug 04, 2006 2:09 pm

Post by nml375 »

Since eggdrop is not multithreaded, this can't be avoided.
While one script invocation is running, no other triggers will be processed (instead queue'd). I'd suggest you look into why your script apparently takes such long time to complete..
NML_375
r
roughnecks
Voice
Posts: 33
Joined: Sun Sep 14, 2008 9:33 am
Location: Italy

Post by roughnecks »

before all, thank u.
the reply is simple enough for me:
the help scripts gives a list of all the tcl commands loaded on my eggdrop and each message is a putquick, and they are clearly too many.

I' m going to work on it, trying to reduce the number of putquicks.

Bye 8)
Post Reply