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.

imdb-20030014

Old posts that have not been replied to for several years.
Locked
T
THC

imdb-20030014

Post by THC »

I have updated the imdb script I use to correspond to the IMDB changes that they have made recently. The script works only as a private message. When I try to use the trigger in a channel it does not display, however, if I do the same trigger as a private message I get the information without a problem. Is there a solution to this problem? Thanks.
j
jdp

Post by jdp »

The script uses 2 different procs -- one for a public reply (imdb_handler) and one for a msg reply (imdb_msghandler). You have to make the same changes to both to get it working. It may be kind of silly and wasteful to make two different procs when all you would have to do is set a couple variables at the beginning to combine it all into one, but that was the way it was written.
T
THC

Post by THC »

ok. I see in the script where the two differnet handlers are. What would I have to change? I put the tt in with the imdb path. And I replaced a string of code with this set title [string range $title 13 [expr [string length $title] - 2]]/

not sure what else to do at this point.
j
jdp

Post by jdp »

Well first off I hope you have already read this thread. http://forum.egghelp.org/viewtopic.php?t=5412 If not then I'm guessing thats all you need to know.

It's best to just use a find function or a replace one in the editor you're using to edit the tcl and replace ALL instances where the line comes up, because like in this case, both of those lines come up twice, once for each procedure in this particular script.
T
THC

Post by THC »

yeah, I already did what that link you posted said and it fixed it from not working at all. now it doesnt work as a public command, only if you msg the bot with the !imdb. How do I fix this?
j
jdp

Post by jdp »

It should work then.. not much else I can say. Here's mine if you want to download it and try it out. Maybe this'll help: http://jdpman.home.comcast.net/imdb-20030014-fixed.tcl
Locked