some use of ERR_NOTREGISTERED
basic error checking for channel name
fix bug