Merge pull request 'Fix SteamwarUser.setLocale' (#489) from Hut512/SteamWar:fix/setlocale-typo into main

Reviewed-on: SteamWar/SteamWar#489
Reviewed-by: YoyoNow <4+yoyonow@noreply.localhost>
This commit is contained in:
2026-09-14 12:18:40 +02:00
@@ -307,12 +307,12 @@ class SteamwarUser(id: EntityID<Int>) : IntEntity(id) {
punishments[punishment] = Punishment.createPunishment(this@SteamwarUser.id.value, from, punishment, reason, time, perma) punishments[punishment] = Punishment.createPunishment(this@SteamwarUser.id.value, from, punishment, reason, time, perma)
} }
fun setLocale(locale: Locale?, manualeLocale: Boolean) { fun setLocale(locale: Locale?, manualLocale: Boolean) {
if (locale == null || (this.manualLocale && !manualLocale)) return if (locale == null || (this.manualLocale && !manualLocale)) return
useDb { useDb {
this@SteamwarUser.locale = locale this@SteamwarUser.locale = locale
this@SteamwarUser.manualLocale = manualeLocale this@SteamwarUser.manualLocale = manualLocale
} }
} }