mirror of
https://gitlab.com/xonotic/xonotic
synced 2025-03-02 09:20:27 +00:00
Don't prune kicked users.
This commit is contained in:
parent
8b59d42816
commit
0927a3c56f
@ -99,7 +99,7 @@ func syncPowerLevels(client *mautrix.Client, room id.RoomID, roomGroup []Room, s
|
||||
for user, score := range scores[room] {
|
||||
// Expire users that for some reason did not get pruned from the database.
|
||||
// This may cause them to lose their power level below.
|
||||
if _, found := roomUsers[room][user]; !found && score.CurrentState != NotActive {
|
||||
if _, found := roomUsers[room][user]; !found && score.CurrentState != NotActive && score.CurrentState != Kicked {
|
||||
log.Printf("Pruning long inactive user %v from room %v.", user, room)
|
||||
setUserStateAt(room, user, time.Now(), NotActive, NotActive)
|
||||
score.CurrentState = NotActive
|
||||
|
Loading…
Reference in New Issue
Block a user