mIRC Home    About    Download    Register    News    Help

Print Thread
#110057 04/02/05 02:29 AM
Joined: Sep 2004
Posts: 237
J
JAFO Offline OP
Fjord artisan
OP Offline
Fjord artisan
J
Joined: Sep 2004
Posts: 237
I want to echo
DCC Send from TestNick rejected (Test.mrc, file type ignored)
to a custom window, but i cant quite figure out how to. I have tried with the assumption that its similar to a ctcpreply.

#110058 04/02/05 03:17 AM
Y
YMFBISYINFT
YMFBISYINFT
Y
It's not a ctcp at all, it's a message from mIRC telling
you it rejected the file from TestNick. There's no way
afaik to intercept internal errors. Maybe there's a DLL
to do this somewhere out there?

#110059 04/02/05 03:25 AM
Joined: Mar 2004
Posts: 358
L
Fjord artisan
Offline
Fjord artisan
L
Joined: Mar 2004
Posts: 358
It could be a raw event, type /debug @debug and recreate that 'error' get the raw numeric and read up on /help raw events

#110060 04/02/05 03:32 AM
Y
YMFBISYINFT
YMFBISYINFT
Y
It's not a raw either, it's not an outside source sending this
message, there is no event for it, it's echoed by mIRC itself.
Unless on GETFAIL would catch it, never tried that. after all
it is a failed get.

Last edited by YMFBISYINFT; 04/02/05 03:34 AM.
#110061 04/02/05 03:38 AM
Joined: Sep 2004
Posts: 237
J
JAFO Offline OP
Fjord artisan
OP Offline
Fjord artisan
J
Joined: Sep 2004
Posts: 237
Oh the reason i assumed it was something to do with ctcp is because its displaying the msg in my ctcp color. I tried checking out the raws and no luck there i get a notice then a pm in debug from the sender, but no reply or raw. Did find this though : You can process non-numeric server messages by specifying the name of the event: now to figure out the event name.... i think.

Edit: Tried getfail too ....... cant seem to grab the text, and i tried on text also.

Last edited by JAFO; 04/02/05 03:39 AM.
#110062 04/02/05 10:48 AM
D
DaveC
DaveC
D
try this thread https://forums.mirc.com/s...mp;Number=69041 The text is echoed to the status window so u have to monitor that for changes, I think I set the timer on line 4 a bit low, maybe 100 or 250 would be better, but then It doesnt do stuff all, so likely 20 might be fine.

#110063 04/02/05 04:32 PM
Joined: Sep 2004
Posts: 237
J
JAFO Offline OP
Fjord artisan
OP Offline
Fjord artisan
J
Joined: Sep 2004
Posts: 237
Thanks DaveC , i'll see what i can do with that.....but then i just might eliminate the File Type Ignored option from what i'm writing.

#110064 04/02/05 07:47 PM
D
DaveC
DaveC
D
Well the other way you can do it is by scripting in your own ignoring of files of that type.

This starter of the code block well help, if its an ignored type, just do a halt or haltdef, and the dcc is totally ignored by mirc
Code:
CTCP ^*:DCC SEND *:{
  ; # correct $1- to deal with files with spaces in the filename #
  tokenize 62 $1 $+ > $+ $2 $+ > $+ $nopath($filename) $+ > $+ $gettok($1-,-3,32) $+ > $+ $gettok($1-,-2,32) $+ > $+ $gettok($1-,-1,32)
  ;
  ; # $1- now should = Dcc Send Filename LongIP Port Filesize # 
  ; # NOTE filename MAY have spaces in it but is still in $3
  ;
  ; * place what code you need here to detect an ignored file type, likely a read from the mirc.ini and a check against the legal/ilegal file types, ill leave that lot to you.

#110065 04/02/05 08:10 PM
I
Iori
Iori
I
Or just use mIRCs own smile
Code:
ctcp *:dcc send:if $dccignore($filename) { echo @window <Message for ignoring file> | dccreject }

#110066 05/02/05 08:00 AM
D
DaveC
DaveC
D
indeed you could, but then you wouldnt be a complete noob like me and not know of the identifier smile

#110067 05/02/05 08:13 AM
Joined: Sep 2004
Posts: 237
J
JAFO Offline OP
Fjord artisan
OP Offline
Fjord artisan
J
Joined: Sep 2004
Posts: 237
Well look how easy that is. I think i overcomplicate things.


Link Copied to Clipboard