alias queries {
scon -a $(inc -u %q $query(0),0)
return $iif(%q,$v1,0)
}
Your code uses scon in some places and scid in other places. The way the code works, you should be using scon throughout. scon uses a sequential set of numbers to represent the server windows (and related windows) that are currently open, whereas scid uses increasing numbers that are never reused in the life of a mIRC session. Example:
- Open mIRC
- SCID: 1 SCON: 1
- /server -n
- SCID: 1,2 SCON: 1,2
- close first status window
- SCID: 2 SCON: 1
- /server -n
- SCID: 2,3 SCON: 1,2
Note: I'm not sure how the scid numbers are generated/chosen, so they may not always go 1,2,3,4,etc as server windows are opened.
-genius_at_work