egghelp.org community Forum Index
[ egghelp.org home | forum home ]
egghelp.org community
Discussion of eggdrop bots, shell accounts and tcl scripts.
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

problems with [nick]

 
Post new topic   Reply to topic    egghelp.org community Forum Index -> Scripting Help
View previous topic :: View next topic  
Author Message
Garp
Voice


Joined: 15 Sep 2003
Posts: 29

PostPosted: Tue Nov 01, 2005 12:34 pm    Post subject: problems with [nick] Reply with quote

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
View user's profile Send private message
metroid
Owner


Joined: 16 Jun 2004
Posts: 771

PostPosted: Tue Nov 01, 2005 2:10 pm    Post subject: Reply with quote

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
View user's profile Send private message
Garp
Voice


Joined: 15 Sep 2003
Posts: 29

PostPosted: Tue Nov 01, 2005 3:21 pm    Post subject: Reply with quote

Code:
bind join - * testme

proc testme {nick uhost hand chan} {
putlog "[split $nick]"
}


thank you, works!
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    egghelp.org community Forum Index -> Scripting Help All times are GMT - 4 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Forum hosting provided by Reverse.net

Powered by phpBB © 2001, 2005 phpBB Group
subGreen style by ktauber