| View previous topic :: View next topic |
| Author |
Message |
.pt Halfop
Joined: 16 Nov 2005 Posts: 71
|
Posted: Sat Apr 22, 2006 8:08 pm Post subject: exceptlist of words |
|
|
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 |
|
 |
Sir_Fz Revered One

Joined: 27 Apr 2003 Posts: 3793 Location: Lebanon
|
|
| Back to top |
|
 |
.pt Halfop
Joined: 16 Nov 2005 Posts: 71
|
Posted: Sat Apr 22, 2006 9:17 pm Post subject: |
|
|
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 |
|
 |
Sir_Fz Revered One

Joined: 27 Apr 2003 Posts: 3793 Location: Lebanon
|
Posted: Sat Apr 22, 2006 9:44 pm Post subject: |
|
|
| 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 |
|
 |
.pt Halfop
Joined: 16 Nov 2005 Posts: 71
|
Posted: Sat Apr 22, 2006 10:20 pm Post subject: [HELPED] tks |
|
|
tks  |
|
| Back to top |
|
 |
|