| View previous topic :: View next topic |
| Author |
Message |
COBRa Halfop
Joined: 04 Jan 2013 Posts: 49
|
Posted: Thu Nov 03, 2016 10:00 am Post subject: Bind pub query |
|
|
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 |
|
| Back to top |
|
 |
SpiKe^^ Owner

Joined: 12 May 2006 Posts: 792 Location: Tennessee, USA
|
Posted: Thu Nov 03, 2016 11:37 am Post subject: |
|
|
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
. |
|
| Back to top |
|
 |
COBRa Halfop
Joined: 04 Jan 2013 Posts: 49
|
Posted: Thu Nov 03, 2016 2:41 pm Post subject: |
|
|
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 |
|
| Back to top |
|
 |
willyw Revered One
Joined: 15 Jan 2009 Posts: 1175
|
Posted: Thu Nov 03, 2016 10:46 pm Post subject: |
|
|
I think Spike's idea works.
| Code: |
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 ! |
|
| Back to top |
|
 |
willyw Revered One
Joined: 15 Jan 2009 Posts: 1175
|
Posted: Thu Nov 03, 2016 10:48 pm Post subject: |
|
|
This works too:
| Code: |
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 ! |
|
| Back to top |
|
 |
|