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 

Bogus Trivia - check answers for auto correctors

 
Post new topic   Reply to topic    egghelp.org community Forum Index -> Script Requests
View previous topic :: View next topic  
Author Message
Spectre
Voice


Joined: 16 Aug 2009
Posts: 15

PostPosted: Sat Jun 09, 2018 11:09 am    Post subject: Bogus Trivia - check answers for auto correctors Reply with quote

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
View user's profile Send private message
SpiKe^^
Owner


Joined: 12 May 2006
Posts: 546
Location: Tennessee, USA

PostPosted: Sat Jun 09, 2018 12:07 pm    Post subject: BogusTrivia: Accept only lower case answers Reply with quote

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
Back to top
View user's profile Send private message Visit poster's website
Spectre
Voice


Joined: 16 Aug 2009
Posts: 15

PostPosted: Sat Jun 09, 2018 12:24 pm    Post subject: Reply with quote

Works as intented, thanks
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 Requests All times are GMT - 4 Hours
Page 1 of 1

 
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