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.
Support & discussion of released scripts, and announcements of new releases.
Pampa
Voice
Posts: 1 Joined: Mon Nov 10, 2008 10:15 am
Post
by Pampa » Mon Nov 10, 2008 10:18 am
I may be a little late, but I have found a solution to this problem
just replace
Code: Select all
if {[catch {incr tghintnum}]!=0} {
set tghintnum 0
regsub -all -- "\[^A-Za-z0-9\]" $tgcurrentanswer "" _hintchars
set tgmaxhintcurrent [expr [strlen $_hintchars]<=$tgmaxhint?[expr [strlen $_hintchars]-1]:$tgmaxhint]
catch {tgunbindhintcmd}
if {$tgmaxhintcurrent>0} {
set tgrebindhinttimer [utimer $tgtempnohint tgbindhintcmd]
}
}
by this :
Code: Select all
if {![info exists tghintnum]} {
set tghintnum 0
regsub -all -- "\[^A-Za-z0-9\]" $tgcurrentanswer "" _hintchars
set tgmaxhintcurrent [expr [strlen $_hintchars]<=$tgmaxhint?[expr [strlen $_hintchars]-1]:$tgmaxhint]
catch {tgunbindhintcmd}
if {$tgmaxhintcurrent>0} {
set tgrebindhinttimer [utimer $tgtempnohint tgbindhintcmd]
}
} else { incr tghintnum }
Hope it will help.
See ya !
ExYuLink
Voice
Posts: 2 Joined: Tue Jan 11, 2011 2:05 pm
Post
by ExYuLink » Tue Jan 11, 2011 2:09 pm
I know it's outdated topic, but I can't find the solution on the web.
I'm using eggdrop v1.6.18 on FreeBSD 7.3-RELEASE-pX, and I have the same problem with the tgmaxhintcurrent variable. 1.6.18 and 1.6.19 have the same exact problem, on different platforms.
Does anyone have any idea how to fix this problem?
ExYuLink
Voice
Posts: 2 Joined: Tue Jan 11, 2011 2:05 pm
Post
by ExYuLink » Tue Jan 11, 2011 2:26 pm
Sorry, I didn't notice the answer above. I was looking only on the first page.
Pampa, thank you, your post solves the issue.
javidav
Voice
Posts: 2 Joined: Fri Jun 13, 2014 11:17 pm
Post
by javidav » Sat Jun 14, 2014 9:40 pm
Thank you Pampa, it's works!!!