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.

can anyone help wiff this

Old posts that have not been replied to for several years.
Locked
k
kk-
Voice
Posts: 26
Joined: Sat Aug 09, 2003 10:31 am
Location: uk

can anyone help wiff this

Post by kk- »

chat { if {![matchattr $handle p]} {
putnotc $nick "I don't wanna chat with you"
return 0 }
if {[hand2idx $handle] != -1 } {
putnotc $nick "You are already on the partyline"
return 0 }
if {$telnet < "1024"} {
putnotc $nick "Sorry, your host isn't reachable at this time..."
return 0 }
putserv "PRIVMSG $nick :\001DCC CHAT chat [myip] $telnet\001"
putnotc $nick "DCC Chat - initializing.."
return 1 }


prob i have is this Tcl error [pub_cd]: can't read "telnet": no such variable

anyone know how to solve this i be grateful
User avatar
^DooM^
Owner
Posts: 772
Joined: Tue Aug 26, 2003 5:40 pm
Location: IronForge
Contact:

Post by ^DooM^ »

Can't you just /ctcp botnick chat instead? seems a bit odd that you are trying to make the bot do what it already does?? :-?
The lifecycle of a noob is complex. Fledgling noobs gestate inside biometric pods. Once a budding noob has matured thru gestation they climb out of their pod, sit down at a PC, ask a bunch of questions that are clearly in the FAQ, The Noob is born
k
kk-
Voice
Posts: 26
Joined: Sat Aug 09, 2003 10:31 am
Location: uk

Post by kk- »

i'm just lazy i want to just type shortnick off the bot chat & get it to dcc chat me instead off me dcc chatting it.......... plus helps the newbies
p
ppslim
Revered One
Posts: 3914
Joined: Sun Sep 23, 2001 8:00 pm
Location: Liverpool, England

Post by ppslim »

In that case, simply interface it with the *ctcp:CHAT command.

This is the Tcl equivilant proc name of the bind called when performing a /ctcp <bot> chat

The bot can handle the request for valid user info then.
Locked