mIRC Home    About    Download    Register    News    Help

Print Thread
Dcc chat close when is called from a event #108901 23/01/05 04:34 PM
Joined: Apr 2003
Posts: 414
Adrenalin Offline OP
Fjord artisan
OP Offline
Fjord artisan
Joined: Apr 2003
Posts: 414
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..

Re: Dcc chat close when is called from a event #108902 23/01/05 05:49 PM
Joined: Dec 2002
Posts: 2,962
S
starbucks_mafia Offline
Hoopy frood
Offline
Hoopy frood
S
Joined: Dec 2002
Posts: 2,962
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.


Spelling mistakes, grammatical errors, and stupid comments are intentional.
Re: Dcc chat close when is called from a event #108903 24/01/05 03:35 AM
Joined: Sep 2003
Posts: 4,230
D
DaveC Offline
Hoopy frood
Offline
Hoopy frood
D
Joined: Sep 2003
Posts: 4,230
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 } }

Re: Dcc chat close when is called from a event #108904 24/01/05 06:48 AM
Joined: Jul 2004
Posts: 150
D
Debug Offline
Vogon poet
Offline
Vogon poet
D
Joined: Jul 2004
Posts: 150
Confirmed here too.

Win XP SP1 using mIRC 6.1 , 6.12 and 6.16

Re: Dcc chat close when is called from a event #108905 24/01/05 11:52 AM
Joined: Jan 2003
Posts: 2,523
Q
qwerty Offline
Hoopy frood
Offline
Hoopy frood
Q
Joined: Jan 2003
Posts: 2,523
Or just use
.timer 1 0 dcc chat <nick>
instead of
dcc chat <nick>


/.timerQ 1 0 echo /.timerQ 1 0 $timer(Q).com
Re: Dcc chat close when is called from a event #108906 24/01/05 05:14 PM
Joined: Sep 2003
Posts: 4,230
D
DaveC Offline
Hoopy frood
Offline
Hoopy frood
D
Joined: Sep 2003
Posts: 4,230
ho ho much better, I just assumed it included anything initiated from inside the event. Damn that assumption problem again!