mIRC Homepage
Posted By: littlecramp Detect file ignore? - 29/01/03 01:41 PM
How do I find out If someone try to send a file that is in the dcc ignored option?
Posted By: Poppy Re: Detect file ignore? - 29/01/03 03:30 PM
Do you mean when the file type is ignored? You should get a message in your status window saying something like
*DCC send fail, file type ignored, along with the ip of the person who's trying to send you the file.
Posted By: littlecramp Re: Detect file ignore? - 29/01/03 04:56 PM
Is it possible to detect it using the ctcp 1:text command?
Posted By: Jerk Re: Detect file ignore? - 29/01/03 06:58 PM
$dccignore(N/filename)
Returns the Nth item in the dcc ignore types editbox in the DCC Folders dialog.

If n is zero, returns number of items in list, otherwise returns Nth item in list. If a filename is specified, returns $true if it matches item in list, otherwise $false.

Just use $dccignore within the ctcp event
Posted By: littlecramp Re: Detect file ignore? - 29/01/03 07:10 PM
What I wanted is whenever a dcc ignored file is being rejected, how do I get the warning into a dialog?
Posted By: Jerk Re: Detect file ignore? - 29/01/03 07:26 PM
Code:
ctcp *:DCC SEND:{
  if ($dccignore($nopath($filename))) {
    ; did command(s) for dialog stuff go here
  }
}
Posted By: littlecramp Re: Detect file ignore? - 30/01/03 04:54 AM
Thanks very much for the reply!
© mIRC Discussion Forums