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.

Problem with binds

Old posts that have not been replied to for several years.
Locked
G
Garby
Voice
Posts: 5
Joined: Thu Jun 16, 2005 12:01 pm
Location: France

Problem with binds

Post by Garby »

Why is it that everytime i try to add a second bind command to my script, it ends up in a Tcl error [pub_results]: invalid command name "pub_results" ?

(pub_results being my second bind)
User avatar
demond
Revered One
Posts: 3073
Joined: Sat Jun 12, 2004 9:58 am
Location: San Francisco, CA
Contact:

Post by demond »

care to post your code?
User avatar
Sir_Fz
Revered One
Posts: 3794
Joined: Sun Apr 27, 2003 3:10 pm
Location: Lebanon
Contact:

Post by Sir_Fz »

most probably, the proc pub_results doesn't exist.
G
Garby
Voice
Posts: 5
Joined: Thu Jun 16, 2005 12:01 pm
Location: France

Post by Garby »

Here is the code:

Code: Select all

bind pub - !results pub_results

### !results [arg]

proc pub_results {nick host hand chan arg} {
  dccsend indexes/$arg.tar $nick
  }
  return 0
}
User avatar
demond
Revered One
Posts: 3073
Joined: Sat Jun 12, 2004 9:58 am
Location: San Francisco, CA
Contact:

Post by demond »

you have an extra brace before return
G
Garby
Voice
Posts: 5
Joined: Thu Jun 16, 2005 12:01 pm
Location: France

Post by Garby »

oh yeah lol, sorry for bothering you :s and thank you :)
Locked