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 

exceptlist of words

 
Post new topic   Reply to topic    egghelp.org community Forum Index -> Scripting Help
View previous topic :: View next topic  
Author Message
.pt
Halfop


Joined: 16 Nov 2005
Posts: 71

PostPosted: Sat Apr 22, 2006 8:08 pm    Post subject: exceptlist of words Reply with quote

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
Back to top
View user's profile Send private message
Sir_Fz
Revered One


Joined: 27 Apr 2003
Posts: 3793
Location: Lebanon

PostPosted: Sat Apr 22, 2006 8:23 pm    Post subject: Reply with quote

exempt from what?
_________________
Follow me on GitHub

- Opposing

Public Tcl scripts
Back to top
View user's profile Send private message Visit poster's website
.pt
Halfop


Joined: 16 Nov 2005
Posts: 71

PostPosted: Sat Apr 22, 2006 9:17 pm    Post subject: Reply with quote

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
Back to top
View user's profile Send private message
Sir_Fz
Revered One


Joined: 27 Apr 2003
Posts: 3793
Location: Lebanon

PostPosted: Sat Apr 22, 2006 9:44 pm    Post subject: Reply with quote

Code:
set ignorelist {ident op ...}
if {[lsearch -exact $ignorelist [string tolower [lindex [split $arg] 0]]] != -1} {return 0}

_________________
Follow me on GitHub

- Opposing

Public Tcl scripts
Back to top
View user's profile Send private message Visit poster's website
.pt
Halfop


Joined: 16 Nov 2005
Posts: 71

PostPosted: Sat Apr 22, 2006 10:20 pm    Post subject: [HELPED] tks Reply with quote

tks Smile
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 -> Scripting Help 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