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.

Error Setting CTCP the way i should want it.

Old posts that have not been replied to for several years.
Locked
User avatar
CoMMy
Halfop
Posts: 99
Joined: Thu Jul 24, 2003 1:03 am
Location: Cyprus

Error Setting CTCP the way i should want it.

Post by CoMMy »

I have this TCL and i get an error. Can you help?

Code: Select all

if {[info exists ctcptime]} { 
bind ctcp - TIME ctcp_time }
proc ctcp_time {nick} {
putserv "NOTICE $nick :\001TIME $::ctcptime\001" }
I get this error.

Code: Select all

[16:36] Tcl error [ctcp_time]: called "ctcp_time" with too many arguments
Please help me.
(c) CoMMy (c)
Resistance is Futile!!
We Are The Borg!!
User avatar
]Kami[
Owner
Posts: 590
Joined: Thu Jul 24, 2003 2:59 pm
Location: Slovenia
Contact:

Post by ]Kami[ »

Try:

Code: Select all

if {[info exists ctcptime]} { 
bind ctcp - "ctcp_time" ctcp_time } 
proc ctcp_time {nick} { 
putserv "NOTICE $nick :\001TIME $::ctcptime\001" } 
s
spock
Master
Posts: 319
Joined: Thu Dec 12, 2002 8:40 pm

Post by spock »

bravo kami! that's some top dollar advice :mrgreen:

i'd suggest reading tcl-commands.doc, commy.
like bind ctcp, for instance, and what it passes
along to the procedure
photon?
Locked