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.

"[ ]"s in .tcl script

Old posts that have not been replied to for several years.
Locked
User avatar
DrTongue
Op
Posts: 115
Joined: Sat Jan 26, 2002 8:00 pm
Location: Orlando, Florida
Contact:

"[ ]"s in .tcl script

Post by DrTongue »

I am using a script that detects people if they "set away' in channel. One example of a trigger for this is "*away*(*)*" Recently I noticed more and more people using "<nick> [away] Doing something" So I tried to set "*[away]*" as a trigger in the script. After rehasing though the bot started warning/kicking/banning anyone who said ANYTHING. Most I can figure is that it could not read the [ ]s and took the new trigger as " * * ", basically taking everything as a trigger. Would this assumtion be correct? Should it BE "*[away]*" or would "[away]" work or get me the same result?

Thanks
User avatar
Souperman
Halfop
Posts: 69
Joined: Sat Feb 02, 2002 8:00 pm
Location: Cape Town, South Africa
Contact:

Post by Souperman »

Try "*\[away\]*". Also, read http://www.peterre.com/characters.html.
Quick! Somebody get me a new ink cartridge
Locked