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.
garfwen
Halfop
Posts: 61 Joined: Wed Mar 12, 2008 5:16 pm
Post
by garfwen » Mon Nov 17, 2008 7:07 pm
How can i put a variable $var into another variable $var2 ?
set var "Hey"
set var2 { $::var <- need help with this variable }
Thanks,
GaRfWeN
nml375
Revered One
Posts: 2860 Joined: Fri Aug 04, 2006 2:09 pm
Post
by nml375 » Mon Nov 17, 2008 7:12 pm
This would be the easy answer:
NML_375
garfwen
Halfop
Posts: 61 Joined: Wed Mar 12, 2008 5:16 pm
Post
by garfwen » Tue Nov 18, 2008 4:43 am
Thats not what i mean,
like:
set var "Today"
set var2 "$var is a good day"
bindpub - !today today
proc today....
You know what I mean ?
sorry .. my english :S
GaRfWeN
dj-zath
Op
Posts: 134 Joined: Sat Nov 15, 2008 6:49 am
Contact:
Post
by dj-zath » Tue Nov 18, 2008 1:52 pm
this??
Code: Select all
set channel "#mychannel"
set var "whatever you want here"
bind pub - !today more
proc more {args} {
global $channel var varTemp
set varTemp "$var is a great day"
set var "$varTemp"
putserv "PRIVMSG $channel $varTemp"
return 0
}
Okay, I know its crude!
DjZ