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.

Can I chat with a fserv with dcc???

Old posts that have not been replied to for several years.
Locked
c
cerberus_gr
Halfop
Posts: 97
Joined: Fri Feb 07, 2003 8:57 am
Location: 127.0.0.1

Can I chat with a fserv with dcc???

Post by cerberus_gr »

I want to dcc chat with a fserv. Could I open a dcc chat and how could I do this? Which bind is used for this dcc?
p
ppslim
Revered One
Posts: 3914
Joined: Sun Sep 23, 2001 8:00 pm
Location: Liverpool, England

Post by ppslim »

OK, incoming DCC commands, are done via the CTCP bind.

You will need to extract the IP and PORT.

Before connecting, you will need to convert the IP into a real form (search the forum for ip2long for code to do this).
c
cerberus_gr
Halfop
Posts: 97
Joined: Fri Feb 07, 2003 8:57 am
Location: 127.0.0.1

Post by cerberus_gr »

My problem is that how the eggdrop doesn't recognise the chat as a user dcc chat. What I mean:

User with nick xfer sends me a dcc chat request.
The eggdrop will not accept the chat if the user has no flag on it. How could I accept dcc chats from users that have no flags? Then when the dcc chat opens, how could the eggdrop don't recognised him as a user, because xfer is just an fserv (can't write a password, eggdrop mustn't send any msg which is a command for the fserv). Should I have to use sockets?
User avatar
GodOfSuicide
Master
Posts: 463
Joined: Mon Jun 17, 2002 8:00 pm
Location: Austria

Post by GodOfSuicide »

there is a good fserve tcl in the archive (but i got a newer version on my HDD somewhere), the DCC initialize commands etc from there should work for you script too..

on trigger it open a DCC to the one who triggerd..just take that part from the source and it should be fine...
p
ppslim
Revered One
Posts: 3914
Joined: Sun Sep 23, 2001 8:00 pm
Location: Liverpool, England

Post by ppslim »

What you are asking for is impossible by any normal standard (at this second).

Eggdrop uses a user/pass security system, where every incoming bot and user connecting is checked. As such, the fserv would need to send these details.

Quite why you want to connect the fserv to the bot in this way is beyond me.

However, if you wish to do somthing like this, it would need to be accomplised using sockets.
Locked