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 Chat & DCC

Old posts that have not been replied to for several years.
Locked
f
fox17
Voice
Posts: 13
Joined: Sun Dec 01, 2002 4:47 pm
Location: Russia/Moscow

DCC Chat & DCC

Post by fox17 »

When I say in channel !chat, then bot give me invite to DCC Chat.
How can I do it?
p
ppslim
Revered One
Posts: 3914
Joined: Sun Sep 23, 2001 8:00 pm
Location: Liverpool, England

Post by ppslim »

Rather than re-write the existing "/ctcp <bot> chat" system, this is a simple wrapper, to covert the public command, into the CTCP system.

Code: Select all

bind pub - "!chat" pug:chat:wrapper
proc pub:chat:wrapper {nick uh hand chan arg} {
  global botnick
  *ctcp:chat $nick $uh $hand $botnick CHAT $arg
}
P
Pitchat
Op
Posts: 122
Joined: Tue Feb 18, 2003 11:24 pm
Location: Hebertville Quebec Canada
Contact:

dcc dcc chat

Post by Pitchat »

[13:19] Tcl error [pub:chat:wrapper]: invalid command name "*ctcp:chat"

and by the way

bind pub - "!chat" pug:chat:wrapper
proc pub:chat:wrapper {nick uh hand chan arg} {
global botnick
*ctcp:chat $nick $uh $hand $botnick CHAT $arg
}

it is better pub:chat:wrapper than pug: chat: wrapper :PP
p
ppslim
Revered One
Posts: 3914
Joined: Sun Sep 23, 2001 8:00 pm
Location: Liverpool, England

Post by ppslim »

It may need to be case sansative, change the *ctcp:chat to *ctcp:CHAT
P
Pitchat
Op
Posts: 122
Joined: Tue Feb 18, 2003 11:24 pm
Location: Hebertville Quebec Canada
Contact:

Post by Pitchat »

ppslim has done it again !!

it works A+

Thanks a lot
f
fox17
Voice
Posts: 13
Joined: Sun Dec 01, 2002 4:47 pm
Location: Russia/Moscow

Post by fox17 »

But if I don't want to put my nick and password.
I have ident on my bot and he give me +Q flag.
I want put on channel !chat and he give me dcc chat without login and password.
How to do it?
p
ppslim
Revered One
Posts: 3914
Joined: Sun Sep 23, 2001 8:00 pm
Location: Liverpool, England

Post by ppslim »

The problem here is the way eggdrop operates.

There are 3 types of connection possible.

1: Script.

This can be done to listen for requests and answer them, and also, to take control after a user is on the partyline.

Only users that have previously been on the partyline (within the same connection), can return to the partyline. Attempts to return the user to the partyline in any other case, will drop the connection

2: Bot based links, using a simalar system to number 3

3: User connections

Within this catagory, there are two methods.

In both cases, the password has to be typed, in one, the username is needed as well.

The password only system, requires that the bot connects to you. There is no way to trigger this other than to physicaly type "/dcc chat <bot>".

The user and password method, is a workaround method, and uses the same system as using telnet directly into the bot.

This could be submitted as a feature request, but it isn't as simple as that.
f
fox17
Voice
Posts: 13
Joined: Sun Dec 01, 2002 4:47 pm
Location: Russia/Moscow

Post by fox17 »

hmm... If I don't want put username, but can put password...
Can you write script that on command !chan give standart dcc chat... whithout put some username... only passwor?
Sorry for my bad English :)
p
ppslim
Revered One
Posts: 3914
Joined: Sun Sep 23, 2001 8:00 pm
Location: Liverpool, England

Post by ppslim »

As noted, no.

It is required that the clinet initialise the DCC CHAT, using the protocol defined in CTCP.

In otherwords, no, it requires all the work client side for this.

The ony other option, is to create your own version of the partyline, that you cater for what you want, though you must be careful on security, as matching a user, by nothing more than there nickname/host, is like taking one extra step away from a cooker to light a match,
Locked