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 

missing close-brace

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


Joined: 21 May 2006
Posts: 103

PostPosted: Wed May 24, 2006 6:44 am    Post subject: missing close-brace Reply with quote

any ideas what is wrong with this code guys n girlers?

Code:
bind pub -|o !age age
proc age {nick uhost hand channel text} {
   if {[llength $text] > 1} {
      puthelp "PRIVMSG $chan :You were supposed to look for a nick.. not more"
   } elseif {![lsearch $::backupfile $text]} {
      puthelp "PRIVMSG $chan :I don't remember seing $text
   } else {
      puthelp "PRIVMSG $chan :$text has been in $chan since [lindex $::userjoindata [lsearch $::backupfile $nick] 2]
   }


error message is this

Code:
[04:45] Tcl error in file 'zeus.conf':
[04:45] missing close-brace
    while executing
"proc age {nick uhost hand channel text} {
   if {[llength $text] > 1} {
      puthelp "PRIVMSG $chan :You were supposed to look for a nick.. not more..."
    (file "scripts/lobby/test.tcl" line 2)
    invoked from within
"source scripts/lobby/test.tcl"
    (file "zeus.conf" line 84)
[04:45] * CONFIG FILE NOT LOADED (NOT FOUND, OR ERROR)
[f4w@lobby-poseidon eggdrop]$
Back to top
View user's profile Send private message
oxygen
Voice


Joined: 05 Sep 2005
Posts: 22
Location: Germany

PostPosted: Wed May 24, 2006 7:04 am    Post subject: Reply with quote

Hello whittinghamj.

I didn't test the script, but it should work now:

Code:
bind pub -|o !age age
proc age {nick uhost hand channel text} {
   if {[llength $text] > 1} {
      puthelp "PRIVMSG $chan :You were supposed to look for a nick.. not more"
   } elseif {![lsearch $::backupfile $text]} {
      puthelp "PRIVMSG $chan :I don't remember seing $text"
   } else {
      puthelp "PRIVMSG $chan :$text has been in $chan since [lindex $::userjoindata [lsearch $::backupfile $nick] 2]"
   }
 }
 putlog "age.tcl loaded"


Regards,
~oxygen
Back to top
View user's profile Send private message
whittinghamj
Op


Joined: 21 May 2006
Posts: 103

PostPosted: Wed May 24, 2006 8:42 pm    Post subject: Reply with quote

thanks - god bless you my son
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