Fixed some issues with the setchan command.

It still needs to check if the given version exists before it sets it,
however.