twig / dcxdll

Dialog Control eXtensions for mIRC
BSD 3-Clause "New" or "Revised" License
23 stars 2 forks source link

Tab childid prop crashes mIRC #54

Closed Dazuzi closed 2 years ago

Dazuzi commented 2 years ago

$xdid().childid crashes mIRC, if you enter an ID that doesn't exist.

Tested with DXC (dcx310dev58git428) and mIRC 7.66.

alias test dialog -m test test
dialog -l test {
  size -1 -1 400 400
}
on *:dialog:test:init:0: {
  dcx Mark $dname test_
  xdialog -c test 1 tab 10 10 380 380 tabstop
  xdid -a test 1 0 0 Test $chr(9) 2 panel 0 0 0 0

  echo -a This one works:   $xdid(test,1,1).childid
  echo -a This one crashes: $xdid(test,1,2).childid
}
alias test_ ;echo -s test: $1-
OokEek commented 2 years ago

Fixed! Caused by using && instead of || in a compare.