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.

duplicate output out of order on multiple channels

Help for those learning Tcl or writing their own scripts.
Post Reply
User avatar
rosc2112
Revered One
Posts: 1454
Joined: Sun Feb 19, 2006 8:36 pm
Location: Northeast Pennsylvania

duplicate output out of order on multiple channels

Post by rosc2112 »

Having posted this on the egghead's bugs mailing list and gotten no response, I figure I might as well try here. So:


I think this may be a bug I found. If not, would
appreciate any advise about how to fix :)

I have noticed that if a bot is on multiple channels,
and a script is called on both channels at
approximately the same time, eggdrop will spit out
duplicate lines out of order on the channels that
called the script after the 1st channel.

So, for example, using an imdb script:


#chan1 (correct output order):
<rosc> .imdb is it college yet
<mybot> Title: Is It College Yet? (2002) (TV) -
http://www.imdb.com/title/tt0285627/
<mybot> Genre : Animation / Comedy
<mybot> Director: Karen Disher
<mybot> Runtime : 90 mins.
<mybot> Country : USA / South Korea
<mybot> Language: English
<mybot> Plot : Daria, Jane, and the rest of the
Lawndale High seniors face graduation and college in
this series finale TV-movie from MTV's 'Daria.'


#chan2 (weird output order):
<rosc> .imdb daria
<mybot> Genre : Animation / Comedy
<mybot> Country : USA / South Korea
<mybot> Language: English
<mybot> Title: 'Daria' (1997)
http://www.imdb.com/title/tt0118298/
<mybot> Tagline : Talks Slow, Thinks Fast
<mybot> Director: Ray Kosarin
<mybot> Runtime : 22 mins.
<mybot> Plot : A smart & cynical girl goes through
teenage life as an proud outsider in a world of mainly
idiotic teens and condescending adults.

Please refer to
http://forum.egghelp.org/viewtopic.php?p=63022#63022
for more discussion about this problem.

I've tried setting double-help 1 and double-help 0 in
the eggrop.conf with the same result. As best as I can
tell, this may be a problem with having threads
enabled?

Any info appreciated :)
User avatar
DragnLord
Owner
Posts: 711
Joined: Sat Jan 24, 2004 4:58 pm
Location: C'ville, Virginia, USA

Post by DragnLord »

it's not an eggdrop problem, it's a matter of tcl scripting
using variable arrays that include the channel when scripting the output should clear the issue up
User avatar
Alchera
Revered One
Posts: 3344
Joined: Mon Aug 11, 2003 12:42 pm
Location: Ballarat Victoria, Australia
Contact:

Post by Alchera »

I have used iMDB.tcl by B0unTy for 2 years at least (location error fixed) in a number of bots using multiple channels and I have yet to see this behaviour.

As DragnLord has indicated, the problem is Tcl script related. Maybe unload all scripts and test each one by one until the offending script is found?
Add [SOLVED] to the thread title if your issue has been.
Search | FAQ | RTM
Post Reply