Make CChan keep track of the channel key, and schedule saving of the config file when appropriate. This is more robust than trying to do it from within the chansaver module.
Make CChan keep track of the channel key, and schedule saving of the config file when appropriate. This is more robust than trying to do it from within the chansaver module.