Move channel succession code into its own function

Add a mychan_succession function for this purpose.