mIRC Home    About    Download    Register    News    Help

Print Thread
#8752 29/01/03 01:41 PM
Joined: Jan 2003
Posts: 127
L
Vogon poet
OP Offline
Vogon poet
L
Joined: Jan 2003
Posts: 127
How do I find out If someone try to send a file that is in the dcc ignored option?

#8753 29/01/03 03:30 PM
Joined: Dec 2002
Posts: 843
P
Hoopy frood
Offline
Hoopy frood
P
Joined: Dec 2002
Posts: 843
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.


Never compare yourself to others - they're more screwed up than you think.
#8754 29/01/03 04:56 PM
Joined: Jan 2003
Posts: 127
L
Vogon poet
OP Offline
Vogon poet
L
Joined: Jan 2003
Posts: 127
Is it possible to detect it using the ctcp 1:text command?

#8755 29/01/03 06:58 PM
Joined: Dec 2002
Posts: 169
J
Vogon poet
Offline
Vogon poet
J
Joined: Dec 2002
Posts: 169
$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

#8756 29/01/03 07:10 PM
Joined: Jan 2003
Posts: 127
L
Vogon poet
OP Offline
Vogon poet
L
Joined: Jan 2003
Posts: 127
What I wanted is whenever a dcc ignored file is being rejected, how do I get the warning into a dialog?

#8757 29/01/03 07:26 PM
Joined: Dec 2002
Posts: 169
J
Vogon poet
Offline
Vogon poet
J
Joined: Dec 2002
Posts: 169
Code:
ctcp *:DCC SEND:{
  if ($dccignore($nopath($filename))) {
    ; did command(s) for dialog stuff go here
  }
}

#8758 30/01/03 04:54 AM
Joined: Jan 2003
Posts: 127
L
Vogon poet
OP Offline
Vogon poet
L
Joined: Jan 2003
Posts: 127
Thanks very much for the reply!


Link Copied to Clipboard