egghelp.org community Forum Index
[ egghelp.org home | forum home ]
egghelp.org community
Discussion of eggdrop bots, shell accounts and tcl scripts.
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

trivia tcl by Harry Scarry - script has error
Goto page Previous  1, 2
 
Post new topic   Reply to topic    egghelp.org community Forum Index -> Script Support & Releases
View previous topic :: View next topic  
Author Message
Pampa
Voice


Joined: 10 Nov 2008
Posts: 1

PostPosted: Mon Nov 10, 2008 10:18 am    Post subject: Reply with quote

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
View user's profile Send private message
ExYuLink
Voice


Joined: 11 Jan 2011
Posts: 2

PostPosted: Tue Jan 11, 2011 2:09 pm    Post subject: Reply with quote

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
View user's profile Send private message
ExYuLink
Voice


Joined: 11 Jan 2011
Posts: 2

PostPosted: Tue Jan 11, 2011 2:26 pm    Post subject: Reply with quote

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
View user's profile Send private message
javidav
Voice


Joined: 13 Jun 2014
Posts: 2

PostPosted: Sat Jun 14, 2014 9:40 pm    Post subject: Reply with quote

Thank you Pampa, it's works!!!
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    egghelp.org community Forum Index -> Script Support & Releases All times are GMT - 4 Hours
Goto page Previous  1, 2
Page 2 of 2

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Forum hosting provided by Reverse.net

Powered by phpBB © 2001, 2005 phpBB Group
subGreen style by ktauber