| View previous topic :: View next topic |
| Author |
Message |
Spectre Voice
Joined: 16 Aug 2009 Posts: 15
|
Posted: Sat Jun 09, 2018 11:09 am Post subject: Bogus Trivia - check answers for auto correctors |
|
|
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. |
|
| Back to top |
|
 |
SpiKe^^ Owner

Joined: 12 May 2006 Posts: 792 Location: Tennessee, USA
|
Posted: Sat Jun 09, 2018 12:07 pm Post subject: BogusTrivia: Accept only lower case answers |
|
|
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: | | proc TGotIt {nk uh hn ch tx} { global t2 tclr botnick ; set iskaos 0 |
And add ONE new line under it like this... | Code: | 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
. |
|
| Back to top |
|
 |
Spectre Voice
Joined: 16 Aug 2009 Posts: 15
|
Posted: Sat Jun 09, 2018 12:24 pm Post subject: |
|
|
| Works as intented, thanks |
|
| Back to top |
|
 |
|