egghelp.org community Forum Index
[ egghelp.org home | forum home ]
egghelp.org community
Discussion of eggdrop bots, shell accounts and tcl scripts.
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

dcc por tcl

 
Post new topic   Reply to topic    egghelp.org community Forum Index -> Script Requests
View previous topic :: View next topic  
Author Message
Arnold_X-P
Master


Joined: 30 Oct 2006
Posts: 221
Location: DALnet - Trinidad - Beni - Bolivia

PostPosted: Sun Nov 08, 2020 9:09 pm    Post subject: dcc por tcl Reply with quote

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
_________________
Very Happy thanks to that they help, that others learn Very Happy
Back to top
View user's profile Send private message Send e-mail Visit poster's website MSN Messenger
caesar
Mint Rubber


Joined: 14 Oct 2001
Posts: 3741
Location: Mint Factory

PostPosted: Mon Nov 09, 2020 1:45 am    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    egghelp.org community Forum Index -> Script Requests All times are GMT - 4 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Forum hosting provided by Reverse.net

Powered by phpBB © 2001, 2005 phpBB Group
subGreen style by ktauber