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.
Old posts that have not been replied to for several years.
kk-
Voice
Posts: 26 Joined: Sat Aug 09, 2003 10:31 am
Location: uk
Post
by kk- » Mon Sep 22, 2003 5:44 pm
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
^DooM^
Owner
Posts: 772 Joined: Tue Aug 26, 2003 5:40 pm
Location: IronForge
Contact:
Post
by ^DooM^ » Mon Sep 22, 2003 6:02 pm
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
kk-
Voice
Posts: 26 Joined: Sat Aug 09, 2003 10:31 am
Location: uk
Post
by kk- » Mon Sep 22, 2003 6:21 pm
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
ppslim
Revered One
Posts: 3914 Joined: Sun Sep 23, 2001 8:00 pm
Location: Liverpool, England
Post
by ppslim » Tue Sep 23, 2003 4:31 am
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.