1
0
Fork 0
forked from External/ergo

Enhancements to CS PURGE

1. Consolidate PURGE and UNPURGE into subcommands
2. Add PURGE LIST
3. PURGE ADD now requires a confirmation code

Fixes #1294
This commit is contained in:
Shivaram Lingamneni 2020-12-15 04:00:44 -05:00
parent 4d5815ab2e
commit fd71b79bb8
3 changed files with 76 additions and 19 deletions

View file

@ -523,3 +523,10 @@ func (channel *Channel) setForward(forward string) {
channel.forward = forward
channel.stateMutex.Unlock()
}
func (channel *Channel) Ctime() (ctime time.Time) {
channel.stateMutex.RLock()
ctime = channel.createdTime
channel.stateMutex.RUnlock()
return
}