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.
Help for those learning Tcl or writing their own scripts.
-
COBRa
- Halfop
- Posts: 49
- Joined: Fri Jan 04, 2013 8:23 am
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
-
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
-
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
-
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 !
-
willyw
- Revered One
- Posts: 1205
- Joined: Thu Jan 15, 2009 12:55 am
Post
by willyw »
For a fun (and popular) Trivia game, visit us at: irc.librairc.net #science-fiction . Over 300K Q & A to play in BogusTrivia !