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.

Bogus Trivia - check answers for auto correctors

Requests for complete scripts or modifications/fixes for scripts you didn't write. Response not guaranteed, and no thread bumping!
Post Reply
S
Spectre
Voice
Posts: 15
Joined: Sun Aug 16, 2009 9:07 am

Bogus Trivia - check answers for auto correctors

Post by Spectre »

Some users has auto correctors, lets say an answer is hello but the auto corrector will type Hello so that it may be good to have an islower checker for answers.

I know some may suggest to kick or ban these users but thats not preferred, so this kind of patch would be nice.
User avatar
SpiKe^^
Owner
Posts: 831
Joined: Fri May 12, 2006 10:20 pm
Location: Tennessee, USA
Contact:

BogusTrivia: Accept only lower case answers

Post by SpiKe^^ »

This code patch should force BogusTrivia to Ignore correct answers that contain "Any Upper Case Letters".

Search the t-2.tcl file for this line of code...

Code: Select all

proc TGotIt {nk uh hn ch tx} {  global t2 tclr botnick  ;  set iskaos 0
And add ONE new line under it like this...

Code: Select all

proc TGotIt {nk uh hn ch tx} {  global t2 tclr botnick  ;  set iskaos 0
 if {[string match {*[A-Z]*} $tx]} {  return 0  }
Please test this patch and report back here.
SpiKe^^

Get BogusTrivia 2.06.4.7 at www.mytclscripts.com
or visit the New Tcl Acrhive at www.tclarchive.org
.
S
Spectre
Voice
Posts: 15
Joined: Sun Aug 16, 2009 9:07 am

Post by Spectre »

Works as intented, thanks
Post Reply