mIRC Homepage
Posted By: onconnect channel window... - 21/01/03 09:02 AM

ok, i tried every way...
i just want to prevent channel windows from closing
by accidentally clicking on the x...
seems to be no way...on part etc. doesnt work..

can anyone help?

Posted By: fraggle Re: channel window... - 21/01/03 09:17 AM
The only thing I can think of that <<might>> work is the on close event - use the ^ prefix and use haltdef inside...

but I cant check the helpfile or even test it to see whether it might work or not wink
Posted By: vasil_michev Re: channel window... - 21/01/03 09:35 AM
I don't beleive it's possible with channel windows
In general the event that handles window closing is on close, but it only works for custom windows
So if you want to do this use custom windows for channels
I don't know if there's a dll that do this tho...
Posted By: BlackAle Re: channel window... - 21/01/03 11:09 AM
I don't think it actually possible to stop the channel from closing, the best you could do is to immediately rejoin the channel, maybe with the following...

Code:
 
on *:PART:*: {
  .timer 1 0 join $chan
}  
© mIRC Discussion Forums