mIRC Home    About    Download    Register    News    Help

Print Thread
#199905 23/05/08 11:05 PM
Joined: Jul 2007
Posts: 21
Ameglian cow
OP Offline
Ameglian cow
Joined: Jul 2007
Posts: 21
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

Joined: Jan 2003
Posts: 2,523
Q
Hoopy frood
Offline
Hoopy frood
Q
Joined: Jan 2003
Posts: 2,523
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.


/.timerQ 1 0 echo /.timerQ 1 0 $timer(Q).com
Joined: Jul 2007
Posts: 21
Ameglian cow
OP Offline
Ameglian cow
Joined: Jul 2007
Posts: 21
Ah lol!
I've forgotted the ^, and maybe older mIRCs have a bug...
Thank you for all!


Link Copied to Clipboard