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.

get current bind

Old posts that have not been replied to for several years.
Locked
m
meks
Voice
Posts: 16
Joined: Mon Jun 09, 2003 3:16 pm

get current bind

Post by meks »

hi there!

is there a way to either define variables for procs called from binds (...like
bind pub P !halt proc_one && set cmd "command") or is there a way to check the current bind (e.g. !halt) the procedure is called from?
for example:

bind pub P !halt proc_two

proc proc_two {some args} {
global current_bind #should get !halt in this example
....
}


thanks.
User avatar
Papillon
Owner
Posts: 724
Joined: Fri Feb 15, 2002 8:00 pm
Location: *.no

Post by Papillon »

read about lastbind in tcl-command.doc
Elen sila lúmenn' omentielvo
Locked