screepsmod-admin-utils icon indicating copy to clipboard operation
screepsmod-admin-utils copied to clipboard

Add banUser & unbanUser

Open tiennou opened this issue 8 months ago • 5 comments

tiennou avatar Mar 17 '25 04:03 tiennou

Just setting active to 0 is not enough, this happens to users sometimes anyway. https://github.com/ScreepsMods/screepsmod-admin-utils/blob/master/lib%2Fcronjobs%2FinactiveUserCleanup.js

AlinaNova21 avatar Mar 17 '25 14:03 AlinaNova21

An alternative would probably be set banned to true and adjust the whitelist cron to check it as well.

AlinaNova21 avatar Mar 17 '25 14:03 AlinaNova21

An alternative would probably be set banned to true and adjust the whitelist cron to check it as well.

blocked or banned? I don't think banned is a thing right now, but blocked has a couple references around.

tiennou avatar Mar 18 '25 21:03 tiennou

cant set blocked since the whitelist cron would overwrite it, instead, can add banned (it doesnt exist, but can be added anyway), then have the whitelist check it when setting blocked.

AlinaNova21 avatar Mar 18 '25 22:03 AlinaNova21

Okay, updated to set banned on the user along with active: 0 to stop their processing. I've checked that even in the whitelist, a banned user stays disabled.

tiennou avatar Mar 19 '25 17:03 tiennou

Could I get that one merged at some point?

tiennou avatar Aug 01 '25 15:08 tiennou

Thanks!

tiennou avatar Aug 02 '25 13:08 tiennou