add config, recover old functionality, add CHANMODES message