| View previous topic :: View next topic |
| Author |
Message |
Pampa Voice
Joined: 10 Nov 2008 Posts: 1
|
Posted: Mon Nov 10, 2008 10:18 am Post subject: |
|
|
I may be a little late, but I have found a solution to this problem
just replace
| Code: |
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: |
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 ! |
|
| Back to top |
|
 |
ExYuLink Voice
Joined: 11 Jan 2011 Posts: 2
|
Posted: Tue Jan 11, 2011 2:09 pm Post subject: |
|
|
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? |
|
| Back to top |
|
 |
ExYuLink Voice
Joined: 11 Jan 2011 Posts: 2
|
Posted: Tue Jan 11, 2011 2:26 pm Post subject: |
|
|
Sorry, I didn't notice the answer above. I was looking only on the first page.
Pampa, thank you, your post solves the issue. |
|
| Back to top |
|
 |
javidav Voice
Joined: 13 Jun 2014 Posts: 2
|
Posted: Sat Jun 14, 2014 9:40 pm Post subject: |
|
|
| Thank you Pampa, it's works!!! |
|
| Back to top |
|
 |
|