mIRC Homepage
Posted By: Adrenalin Dcc chat close when is called from a event - 23/01/05 04:34 PM
Dcc chat window is auto-close when the "DCC session" is terminated by remote user and the dcc chat was initialized from a event(ex. On Text/On Join/On Input..etc)

How to reproduce?
1. Open two server windows(with different nicks.. example nick1, nick2), connect&join both to the same channel.. (you can open two mircs.. to be sure what bug is not caused by some multiserver feature)
2. In remote put some event what will initialize a dcc chat with nick2, i chose the on Input event(easy to trigger)..
Code:
on 1:INPUT:#:{
  if ($1- == TypeIt) { dcc chat [color:blue]Nick2[/color] | haltdef }
}

(you must change Nick2 to your 2th nick)
3. Type in the channel window: TypeIt, mIRC will try to make a dcc connection, press accept on 2th connection
4. Affter successfully "DCC Chat connection established", close dcc chat in 2th connection, you'll notice what the dcc chat from 1th connection is also closed!

Tested on mIRC 6.16, Windows XP.

If /dcc chat is called from a alias or command line, all is fine..
Confirmed (98SE, v6.16).

Note: It's not a case of having the 'Auto-close on DCC chat completion' option enabled, before someone suggests it.
Posted By: DaveC Re: Dcc chat close when is called from a event - 24/01/05 03:35 AM
Same on 2k & xp with 6.16 and 6.14.

Dont know if u need a work around but this well do in most cases.

on 1:INPUT:#:{ if ($1- == TypeIt) { var %t = $editbox(status window) | editbox -sn //dcc chat localhost $chr(124) editbox -s %t | haltdef } }
Posted By: Debug Re: Dcc chat close when is called from a event - 24/01/05 06:48 AM
Confirmed here too.

Win XP SP1 using mIRC 6.1 , 6.12 and 6.16
Or just use
.timer 1 0 dcc chat <nick>
instead of
dcc chat <nick>
Posted By: DaveC Re: Dcc chat close when is called from a event - 24/01/05 05:14 PM
ho ho much better, I just assumed it included anything initiated from inside the event. Damn that assumption problem again!
© mIRC Discussion Forums