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.

problems with [nick]

Help for those learning Tcl or writing their own scripts.
Post Reply
G
Garp
Voice
Posts: 29
Joined: Mon Sep 15, 2003 7:58 pm

problems with [nick]

Post by Garp »

I use this code and get an error like Tcl error: invalid command name "nick" when [nick] joins the channel.

Code: Select all

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
m
metroid
Owner
Posts: 771
Joined: Wed Jun 16, 2004 2:46 am

Post by metroid »

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.
G
Garp
Voice
Posts: 29
Joined: Mon Sep 15, 2003 7:58 pm

Post by Garp »

Code: Select all

bind join - * testme

proc testme {nick uhost hand chan} {
putlog "[split $nick]"
}
thank you, works!
Post Reply