Hi,
I'm sorry to let you know, but it's not possible to close the Channels list when it wants to open. All you can do for now is hide it, and then close it, at the end of the listing. Also it's not possible yet to hide the messages:
Listing channels
End of /List
So there's no point for us to put "halt" in the raw 321 and 323.
Anyway, this is (as far as I know) the only thing you can do:
RAW 321:*:{
window -h "channels list"
if !$window(@CHANNELS) { window -al @CHANNELS }
aline @CHANNELS Listing all available channels ...
}
RAW 322:*:{ aline @CHANNELS $2- | halt }
RAW 323:*:{
aline @CHANNELS Finished listing channels ...
window -b @CHANNELS
window -c "channels list"
}
You'll probably see the Channels list window pop up for a millisecond, and then it'll be gone.
Edit: changed the window to a listbox window, and made it put a horizontal scroll-bar after listing. Greets