someone said "Adding a close { halt } alias" ... do you mean adding an alias called close which calls up a halt command? could I just add the halt command in the script?
Apparently this alias halts every further execution of the caller (i.e. a script function you may not want to modify because not faulty per se, hoping a bug fix for example
). Of course it is prolly to create other instabilities elsewhere...
As a matter of fact, you could try this modified version (not very elegant as I'm not a mIRC geek):
close {
if ($1 != -c) /close $1-
else {
/var %nch = $chat(0)
if (%nch > 0) {
var %i = 1
while (%i <= %nch) {
if (($chat(%i) == $2) && ($chat(%i).status == inactive)) {
/close -c $+ %i
return
}
inc %i
}
halt
}
}
}
This is the version I use now with sysreset and I didn't crash since I've implemented it (the mere alias "close { halt }" had definitely too much drawbacks...). Basically it only verifies every chat closes and try to close it in another way (by looping on each open chat and allowing close only if inactive, maybe this last condition is not necessary, but now it works satisfactory, so...). Other window closes are no longer affected.