forked from External/ergo
add persistence for user modes
This commit is contained in:
parent
a0f4e90b7e
commit
4d50607c79
3 changed files with 48 additions and 4 deletions
|
|
@ -102,6 +102,10 @@ func ApplyUserModeChanges(client *Client, changes modes.ModeChanges, force bool,
|
|||
// can't do anything to TLS mode
|
||||
}
|
||||
|
||||
if len(applied) != 0 {
|
||||
client.markDirty(IncludeUserModes)
|
||||
}
|
||||
|
||||
// return the changes we could actually apply
|
||||
return applied
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue