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.

exceptlist of words

Help for those learning Tcl or writing their own scripts.
Post Reply
.
.pt
Halfop
Posts: 71
Joined: Wed Nov 16, 2005 10:14 am

exceptlist of words

Post by .pt »

how to except a list of words set in a variable like this

set ignorewords "bla ble blt fds me you teste1"


tks in advance
User avatar
Sir_Fz
Revered One
Posts: 3793
Joined: Sun Apr 27, 2003 3:10 pm
Location: Lebanon
Contact:

Post by Sir_Fz »

exempt from what?
.
.pt
Halfop
Posts: 71
Joined: Wed Nov 16, 2005 10:14 am

Post by .pt »

when someone privmsg the bot he will relay the msg to a channel, i wanted not to relay if the sentence started with someword like "login op ident" etc.. so not relay users passwords

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

Post by Sir_Fz »

Code: Select all

set ignorelist {ident op ...}
if {[lsearch -exact $ignorelist [string tolower [lindex [split $arg] 0]]] != -1} {return 0}
.
.pt
Halfop
Posts: 71
Joined: Wed Nov 16, 2005 10:14 am

[HELPED] tks

Post by .pt »

tks :)
Post Reply