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.

ctcp commands

Old posts that have not been replied to for several years.
Locked
User avatar
ReaLz
Op
Posts: 121
Joined: Sat Oct 19, 2002 5:33 am
Location: Athens, Greece

ctcp commands

Post by ReaLz »

I'm trying to make a tcl script that can CTCP a user with a .ctcp command from the partyline,
I have written these:
bind dcc m ctcp ctcp_com
bind ctcr - PING ping_me_reply

proc ctcp_com {nick uhost hand arg} {
set arg [string toupper $arg]
if {$arg == "*PING*"} {
putlog "#$hand# CTCP to $nick PING"
putserv "PRIVMSG $nick :\001PING [unixtime]\001"
return 0
}
}
and when I'm trying to .ctcp me PING it says that:
[12:17] Tcl error [ctcp_com]: no value given for parameter "arg" to "ctcp_com"
«A fantastic spaghetti is a spaghetti that does not exist»
p
ppslim
Revered One
Posts: 3914
Joined: Sun Sep 23, 2001 8:00 pm
Location: Liverpool, England

Post by ppslim »

Note the type of bind you have used (DCC), and now note the tcl-command.doc information, regarding how many arguemtnts DCC procs use, and there contents.
Locked