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.

execute a bind when the command starts with a [ or a space

Help for those learning Tcl or writing their own scripts.
Post Reply
User avatar
wac
Halfop
Posts: 80
Joined: Sun Dec 10, 2006 1:22 am
Location: in my cardboard box

execute a bind when the command starts with a [ or a space

Post by wac »

I've tried several binds to execute a line which starts with a [ or better yet to strip the brackets out all together to no avail.

something like this is what I need:

bind pubm * "*\[*bob*\]*" my::proc
I see j00!
User avatar
tomekk
Master
Posts: 255
Joined: Fri Nov 28, 2008 11:35 am
Location: Oswiecim / Poland
Contact:

Post by tomekk »

u mean:

Code: Select all

bind pub - {[bob]} zonk

proc zonk { nick uhost hand chan arg } {
        putquick "PRIVMSG $chan :It works!"
}
12:06:35 <@tomekk> [bob] a b c d e
12:06:36 < botty> It works!
:>
Post Reply