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.
Help for those learning Tcl or writing their own scripts.
.pt
Halfop
Posts: 71 Joined: Wed Nov 16, 2005 10:14 am
Post
by .pt » Sat Apr 22, 2006 8:08 pm
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
Sir_Fz
Revered One
Posts: 3794 Joined: Sun Apr 27, 2003 3:10 pm
Location: Lebanon
Contact:
Post
by Sir_Fz » Sat Apr 22, 2006 8:23 pm
exempt from what?
.pt
Halfop
Posts: 71 Joined: Wed Nov 16, 2005 10:14 am
Post
by .pt » Sat Apr 22, 2006 9:17 pm
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
Sir_Fz
Revered One
Posts: 3794 Joined: Sun Apr 27, 2003 3:10 pm
Location: Lebanon
Contact:
Post
by Sir_Fz » Sat Apr 22, 2006 9:44 pm
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
Post
by .pt » Sat Apr 22, 2006 10:20 pm
tks