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.

Stopping Text help

Help for those learning Tcl or writing their own scripts.
Post Reply
A
Ace-T
Halfop
Posts: 82
Joined: Tue Aug 29, 2006 7:25 am

Stopping Text help

Post by Ace-T »

looking for a way to block certain text to be added to the mysql db from the eggdrop

i have this but doesnt seem to work


if {cow isin $text} {
return 0
}

cow is just an example :P

thx
User avatar
Sir_Fz
Revered One
Posts: 3794
Joined: Sun Apr 27, 2003 3:10 pm
Location: Lebanon
Contact:

Post by Sir_Fz »

Code: Select all

if {[string match "*cow*" $text]} {
 return 0
}
You might want to check out the Tcl documentation at www.tcl.tk and Eggdrop's Tcl-commands.doc (docs/ directory).
Post Reply