mIRC Homepage
Posted By: Jacksoft DCC's messages haltdef bug? - 23/05/08 11:05 PM
Hi, I've recently updated my WIP Script from the 6.31 to 6.32, and seems the new mIRC have a bug.
When I send or receive a file appears the mine personalized echo and the original mirc text:
[00:05:54] «DCC» Invio incompleto di PD_17_Alpha4aa_BACKUP.roar (4.58MB) da Snake
[00:05:54] DCC Send to Snake incomplete (connection failed)
[00:11:32] «DCC» Invio completato di PD_17_Alpha4aa_BACKUP.roar (4.58MB) a Snake
[00:11:32] DCC Send of PD_17_Alpha4aa_BACKUP.roar to Snake complete (00:05:13 14.9 KB/Sec)

A piece of code...
on *:SENDFAIL:*.*: {
echo $pcol(Eventi,24) -as $rpcode($rcode($skin(Eventi,SendFail)),$lang(Common,16),$lang(Events,18), $+ $nopath($filename) ( $+ $bytes($file($filename)).suf $+ ),$lang(Events,16)))
if ($conf(LogManager,DCCLog) == Si) { if (!$exists(Logs\DCCLogs)) { .mkdir Logs\DCCLogs } | .write Logs\DCCLogs\DCCSend_Fail.log $date $time - $nick $+ $chr(58) $nopath($filename) - $bytes($file($filename)).suf }
haltdef
}

Seems that with older mIRC this problem not appear.
Is a bug or a mine error?
Thanks
Posted By: qwerty Re: DCC's messages haltdef bug? - 23/05/08 11:19 PM
You just need to use the ^ event prefix, ie
on ^*:SENDFAIL:*:{ ... | haltdef }
Not sure if older versions could halt the reply in a non-^ event, but the current way is consistent with the way events work in mirc in general.
Posted By: Jacksoft Re: DCC's messages haltdef bug? - 31/05/08 12:50 PM
Ah lol!
I've forgotted the ^, and maybe older mIRCs have a bug...
Thank you for all!
© mIRC Discussion Forums