mIRC Home    About    Download    Register    News    Help

Print Thread
#25186 20/05/03 08:18 AM
Joined: Jan 2003
Posts: 7
M
Matteh Offline OP
Nutrimatic drinks dispenser
OP Offline
Nutrimatic drinks dispenser
M
Joined: Jan 2003
Posts: 7
Hi, i am having a prob with dcc resume.

i am Nat'd to the net, and i have enabled a port range to be forwarded to me for use of dcc gets and such. i have set up mircs port range to be the same range...

i can accept and send files fine, the problem comes when i try to resume. mirc sends the standard resume thread... but puts its own random port number in crazy so i cannot then resume the files as the port is usually never in the range and i dont know how to change it :S

TIA laugh

#25187 20/05/03 09:58 AM
Joined: Jan 2003
Posts: 7
M
Matteh Offline OP
Nutrimatic drinks dispenser
OP Offline
Nutrimatic drinks dispenser
M
Joined: Jan 2003
Posts: 7
ok nm.. fixed it now blush

for anyone whos interested:

Code:
ctcp *:*: {
  if  ($1-2 == dcc send) {
    if ($exists(download\ $+ $3)) { ctcp $nick DCC resume file.ext $dccportfree $file(download\ $+ $3).size | halt }
  }
}

alias dccportfree {
  var %i <first dcc port>
  while (%i <= <last dcc port>) {
    if ($portfree(%i)) { return %i }
    else inc %i
  }
}


#25188 22/05/03 10:15 PM
Joined: May 2003
Posts: 9
D
Nutrimatic drinks dispenser
Offline
Nutrimatic drinks dispenser
D
Joined: May 2003
Posts: 9
How do you use that code?

#25189 25/05/03 09:45 PM
Joined: May 2003
Posts: 9
D
Nutrimatic drinks dispenser
Offline
Nutrimatic drinks dispenser
D
Joined: May 2003
Posts: 9
bump


Link Copied to Clipboard