| View previous topic :: View next topic |
| Author |
Message |
Garp Voice
Joined: 15 Sep 2003 Posts: 29
|
Posted: Tue Nov 01, 2005 12:34 pm Post subject: problems with [nick] |
|
|
I use this code and get an error like Tcl error: invalid command name "nick" when [nick] joins the channel.
| Code: |
bind join - * dronecheck
proc preparedronecheck {nick uhost hand chan} {
putlog $nick
} |
I tried several ways to get rid of the brackets but even then it produce the unmatched open brace in list error.
Could somebody point me into the right direction please?
Yes I used search and I know http://tcl.tk but - no luck till now |
|
| Back to top |
|
 |
metroid Owner
Joined: 16 Jun 2004 Posts: 771
|
Posted: Tue Nov 01, 2005 2:10 pm Post subject: |
|
|
you could also just try binding to the right proc
Also, use split to make sure it doesn't get errors with brackets,braces etc. |
|
| Back to top |
|
 |
Garp Voice
Joined: 15 Sep 2003 Posts: 29
|
Posted: Tue Nov 01, 2005 3:21 pm Post subject: |
|
|
| Code: | bind join - * testme
proc testme {nick uhost hand chan} {
putlog "[split $nick]"
} |
thank you, works! |
|
| Back to top |
|
 |
|