1
0
Fork 0
forked from External/ergo

add persistence for user modes

This commit is contained in:
Shivaram Lingamneni 2020-05-19 14:38:56 -04:00
parent a0f4e90b7e
commit 4d50607c79
3 changed files with 48 additions and 4 deletions

View file

@ -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
}