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.
-
webbax
- Voice
- Posts: 2
- Joined: Thu Feb 07, 2008 3:55 pm
Post
by webbax »
Hi, I wants to do a putquick in the channel, but i cant get it to work...
here is the script i have made, but it wont work.
Code: Select all
bind pub o|o "!putquic putquic"
proc putquic {nick host hand chan text} {
set putquickmsg [lrange $text 0 end]
putquick "$putquickmsg"
}
Is there anyone that can help me?
The code should look like this:
Code: Select all
bind pub o|o !putquic putquic
proc putquic {nick host hand chan text} {
putquick "$text"
}
-
speechles
- Revered One
- Posts: 1398
- Joined: Sat Aug 26, 2006 10:19 pm
- Location: emerald triangle, california (coastal redwoods)
Post
by speechles »
webbax wrote:Hi, I wants to do a putquick in the channel, but i cant get it to work...
here is the script i have made, but it wont work.
Code: Select all
bind pub o|o "!putquic putquic"
proc putquic {nick host hand chan text} {
set putquickmsg [lrange $text 0 end]
putquick "$putquickmsg"
}
Is there anyone that can help me?
The code should look like this:
Code: Select all
bind pub o|o !putquic putquic
proc putquic {nick host hand chan text} {
putquick "$text"
}
You forgot to tell putquick what to do with the text.
understand?
Last edited by
speechles on Fri Feb 08, 2008 1:36 am, edited 1 time in total.
-
webbax
- Voice
- Posts: 2
- Joined: Thu Feb 07, 2008 3:55 pm
Post
by webbax »
i got it, you dont have to explain, i just posted the code so someone more maybe can use it
-
DragnLord
- Owner
- Posts: 711
- Joined: Sat Jan 24, 2004 4:58 pm
- Location: C'ville, Virginia, USA
Post
by DragnLord »
webbax wrote:i got it, you dont have to explain, i just posted the code so someone more maybe can use it
The code you posted does not work, you should be thanking speechles for posting the correction needed to make it work.