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.

dcc por tcl

Requests for complete scripts or modifications/fixes for scripts you didn't write. Response not guaranteed, and no thread bumping!
Post Reply
User avatar
Arnold_X-P
Master
Posts: 226
Joined: Mon Oct 30, 2006 12:19 am
Location: DALnet - Trinidad - Beni - Bolivia
Contact:

dcc por tcl

Post by Arnold_X-P »

this tcl gives this error

Code: Select all

bind msg p !party do_dcchat
 
proc do_dcchat {nick uhost hand text} {
global portlist
    foreach line [dcclist TELNET] {
        set type [lindex $line 1]
        if {[regexp {telnet|all|users} $type]} {
            set port [lindex [lindex $portlist 4] 1]
            putserv "PRIVMSG $nick :\001DCC CHAT chat [myip] $port\001"
            putlog "DCC CHAT Send to $nick"
            return
        }
    }
}
[19:37:09] Tcl error [do_dcchat]: can't read "portlist": no such variable
.:an ideal world:. www.geocities.ws/chateo/yo.htm
my programming place /server ix.scay.net:7005
User avatar
caesar
Mint Rubber
Posts: 3776
Joined: Sun Oct 14, 2001 8:00 pm
Location: Mint Factory

Post by caesar »

That's correct, the portlist variable doesn't exist. Create it.
Once the game is over, the king and the pawn go back in the same box.
Post Reply