| View previous topic :: View next topic |
| Author |
Message |
Arnold_X-P Master

Joined: 30 Oct 2006 Posts: 221 Location: DALnet - Trinidad - Beni - Bolivia
|
Posted: Sun Nov 08, 2020 9:09 pm Post subject: dcc por tcl |
|
|
this tcl gives this error
| Code: | 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 _________________
thanks to that they help, that others learn  |
|
| Back to top |
|
 |
caesar Mint Rubber

Joined: 14 Oct 2001 Posts: 3741 Location: Mint Factory
|
Posted: Mon Nov 09, 2020 1:45 am Post subject: |
|
|
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. |
|
| Back to top |
|
 |
|