| View previous topic :: View next topic |
| Author |
Message |
aap Voice
Joined: 18 Jun 2006 Posts: 13
|
Posted: Sun Jul 02, 2006 6:30 pm Post subject: !command <var> |
|
|
Well... I just can't find it :S And I don't know wich terms I have to use on google for this:
I want to make this:
!command x
so that !command binds a proc. ( I know how to do that)
and that x stores in variable x
Any help is welcome
thx |
|
| Back to top |
|
 |
Sir_Fz Revered One

Joined: 27 Apr 2003 Posts: 3793 Location: Lebanon
|
Posted: Sun Jul 02, 2006 7:37 pm Post subject: |
|
|
Your request (it IS a request btw) makes no sense, you need to elaborate more on what you want. _________________ Follow me on GitHub
- Opposing
Public Tcl scripts |
|
| Back to top |
|
 |
Alchera Revered One

Joined: 11 Aug 2003 Posts: 3344 Location: Ballarat Victoria, Australia
|
Posted: Sun Jul 02, 2006 9:12 pm Post subject: |
|
|
There are plenty of public commands scripts in the Tcl Archive, just search for an appropriate one. _________________ Add [SOLVED] to the thread title if your issue has been.
Search | FAQ | RTM |
|
| Back to top |
|
 |
aap Voice
Joined: 18 Jun 2006 Posts: 13
|
Posted: Mon Jul 03, 2006 7:02 am Post subject: |
|
|
thanks....
Am I right this way:
| Code: |
bind pub - !command hi
proc hi {nick uhand channel host arg} {
blabla...
}
|
I type => !command var
So that "var" stores in "arg" ? |
|
| Back to top |
|
 |
krimson Halfop

Joined: 19 Apr 2006 Posts: 86
|
Posted: Mon Jul 03, 2006 8:32 am Post subject: |
|
|
| "arg" holds everything you type after !command |
|
| Back to top |
|
 |
aap Voice
Joined: 18 Jun 2006 Posts: 13
|
Posted: Wed Jul 05, 2006 10:35 am Post subject: |
|
|
so yes
Thanks a lot |
|
| Back to top |
|
 |
|