mIRC Homepage
Posted By: Matteh DCC Resume - 20/05/03 08:18 AM
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
Posted By: Matteh Re: DCC Resume - 20/05/03 09:58 AM
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
  }
}

Posted By: Dra6oN Re: DCC Resume - 22/05/03 10:15 PM
How do you use that code?
Posted By: Dra6oN Re: DCC Resume - 25/05/03 09:45 PM
bump
© mIRC Discussion Forums