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.

Bind pub query

Help for those learning Tcl or writing their own scripts.
Post Reply
C
COBRa
Halfop
Posts: 49
Joined: Fri Jan 04, 2013 8:23 am

Bind pub query

Post by COBRa »

Hi guys looking for a little help if possible

A normal bind would look something like this

bind pub - 123 gorls

So 123 is the trigger word would I have to do something different if the trigger word had brackets ie

bind pub - [123] gorls

Hope I've explained it well enough

Thanks in advance
User avatar
SpiKe^^
Owner
Posts: 831
Joined: Fri May 12, 2006 10:20 pm
Location: Tennessee, USA
Contact:

Post by SpiKe^^ »

Have you tried things like...

bind pub - {[123]} gorls

or..

bind pub - \[123\] gorls
SpiKe^^

Get BogusTrivia 2.06.4.7 at www.mytclscripts.com
or visit the New Tcl Acrhive at www.tclarchive.org
.
C
COBRa
Halfop
Posts: 49
Joined: Fri Jan 04, 2013 8:23 am

Post by COBRa »

Hi Spike

thx for the prompt reply yes ive tried both of those without success they give no tcl errors so wondering if you have anymore ideas plz
w
willyw
Revered One
Posts: 1205
Joined: Thu Jan 15, 2009 12:55 am

Post by willyw »

I think Spike's idea works.

Code: Select all


bind pub - {[123]} gorls

proc gorls {nick uhost handle chan text} {

        putserv "privmsg $chan :test: $text"
}

works for me.
For a fun (and popular) Trivia game, visit us at: irc.librairc.net #science-fiction . Over 300K Q & A to play in BogusTrivia !
w
willyw
Revered One
Posts: 1205
Joined: Thu Jan 15, 2009 12:55 am

Post by willyw »

This works too:

Code: Select all


bind pub - \[123\] gorls

For a fun (and popular) Trivia game, visit us at: irc.librairc.net #science-fiction . Over 300K Q & A to play in BogusTrivia !
Post Reply