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.

bind lost <flags> <mask> <proc>

Old posts that have not been replied to for several years.
Locked
S
Squall

bind lost <flags> <mask> <proc>

Post by Squall »

I have problem with this binding. I tried this out:
bind lost - * file_lost

proc file_lost {hand nick path transferred length} {
putlog "$hand $nick $path"
putlog "$transferred"
putlog "$length"
}
I was just wanting to show what are those variables are about when i send the bot some file and cancel the sending to create a lost in send connection with the bot. But when i did a .binds in DCC Chat, it was not triggered at all. Transfer module is loaded. One thing i'm not very sure is the <mask> thing. What is the mask means? The hostname of the person sending the bot the file? Or some other things? Please advise thanks :)
p
ppslim
Revered One
Posts: 3914
Joined: Sun Sep 23, 2001 8:00 pm
Location: Liverpool, England

Post by ppslim »

It is not allways the LOST bind that is called in these situations.

It depends on the client being used, and a few other things.

The TOUT bind may be called, rather than LOST.
S
Squall

Post by Squall »

I know... but this is from the log:
[21:35:20] <***> [21:59] CTCP DCC: SEND file.exe 3413996706 64796 3343769 from Squa|| (squall@bb-203-125-116-162.domain.com)
[21:35:21] <***> [21:59] DCC connection: SEND file.exe (Squa||!squall@bb-203-125-116-162.domain.com)
[21:35:23] <***> [21:59] Lost dcc send file.exe from Squa||!squall@bb-203-125-116-162.domain.com (5016/3343769)
So I think it is the LOST bind, but i think will try the TOUT later on. May i know what is the mask inside the LOST binding meaning? the hostname of that particular sender? i tried bind lost - * proc ; bind lost - *!*@* proc ; bind lost - *@* proc , so what is needed for the mask if i want to use the the LOST bind?
p
ppslim
Revered One
Posts: 3914
Joined: Sun Sep 23, 2001 8:00 pm
Location: Liverpool, England

Post by ppslim »

Just checking, but you have made sure the script loads (place a putlog at the base of the file).

In adition, it looks like the mask is the handle of the user.
Locked