mirror of
https://github.com/ergochat/ergo.git
synced 2025-12-20 02:00:11 -08:00
Updates to channel persistence
1. Implement persistent channel keys (#208) 2. Persist changes to registered channel modes 3. Backend changes for persisting operator status (partial #198)
This commit is contained in:
parent
f41067029e
commit
8fb5a38851
8 changed files with 291 additions and 110 deletions
|
|
@ -256,8 +256,8 @@ func (channel *Channel) Key() string {
|
|||
|
||||
func (channel *Channel) setKey(key string) {
|
||||
channel.stateMutex.Lock()
|
||||
defer channel.stateMutex.Unlock()
|
||||
channel.key = key
|
||||
channel.stateMutex.Unlock()
|
||||
}
|
||||
|
||||
func (channel *Channel) HasMode(mode modes.Mode) bool {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue