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.
Old posts that have not been replied to for several years.
-
simonbell
- Halfop
- Posts: 68
- Joined: Mon Aug 05, 2002 8:07 pm
- Location: Washington, England
-
Contact:
Post
by simonbell »
When i try to use $temp-path as a global string i receive the error:
<llamalist> [00:20] Tcl error [test]: can't read "temp": no such variable
which was just taken from the script
proc test {nick uhost hand chan text} {
global temp-path
putlog "$temp-path"
}
what am i missing? It seems to work fine with other global variables which dont have - in.
Simon
-
stdragon
- Owner
- Posts: 959
- Joined: Sun Sep 23, 2001 8:00 pm
-
Contact:
Post
by stdragon »
Putting "-" in variable names was an interesting decision for eggdrop hehe. To read the vars, do ${temp-path} and it should work.