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.

Chat TCL

Old posts that have not been replied to for several years.
Locked
S
SlAiD
Voice
Posts: 21
Joined: Sat Oct 23, 2004 6:24 am

Chat TCL

Post by SlAiD »

I use this TCL to chat with my bots.

But, when another user trying chat, the bot dont connect it.
What port (TCP?) i open to connect it?

TCL:
# chat.tcl
# updated sort of for 1.1 cause a stupid friend (hi digidog) asked me to - LSC
#
# /msg <bot> chat
# will send a dcc chat request to a user on irc
# in case they can't initiate dcc chats, only accept them
#

bind msg p chat msg_chat

# bitchass [censored] 1.1 needs a cmd to get the telnet port
# so set this as the telnet port you want the users to enter
set userport 1357

proc msg_chat {nick uhost hand arg} {
global userport
listen $userport users
putserv "PRIVMSG $nick :\001DCC CHAT chat [myip] $userport\001"
return 1
}

NOTE: i use windrop
User avatar
demond
Revered One
Posts: 3073
Joined: Sat Jun 12, 2004 9:58 am
Location: San Francisco, CA
Contact:

Post by demond »

you don't need a script for this, eggdrop's default reaction on /ctcp <botnick> CHAT makes the bot send a DCC CHAT request to you
S
SlAiD
Voice
Posts: 21
Joined: Sat Oct 23, 2004 6:24 am

Post by SlAiD »

But tcl or /ctcp, not acept.

I need (for my firewall) set ONE port for dcc chat.
It is possible?
User avatar
demond
Revered One
Posts: 3073
Joined: Sat Jun 12, 2004 9:58 am
Location: San Francisco, CA
Contact:

Post by demond »

sure it is

from eggdrop.conf:

Code: Select all

# If you want all dcc file transfers to use a particular portrange either
# because you're behind a firewall, or for other security reasons, set it
# here.
#set reserved-portrange 2010:2020
S
SlAiD
Voice
Posts: 21
Joined: Sat Oct 23, 2004 6:24 am

Post by SlAiD »

I set one port.

set reserved-portrange 1501:1501

Ir i'm wrong i reply this topic, if not, thanks.
Locked